Starter World's Kit
Starter World builds its meadow from a small kit of shapes, and any game built on Starter World can use it too:
const Kit := preload("res://layers/starter-world/kit.gd")
Every helper gives back a node to add to your zone. at is where it goes.
| Call | Gives back | What it does |
|---|---|---|
material(color: Color, roughness := 0.85, emission := 0.0) | StandardMaterial3D | A plain material. emission above 0 makes it glow |
mesh(shape: Mesh, color: Color, at := Vector3.ZERO, emission := 0.0) | MeshInstance3D | Any Godot mesh, coloured. Nothing collides with it |
box(size: Vector3, color: Color, at: Vector3) | StaticBody3D | A solid box you can stand on. Its top face is at at.y |
island(radius: float, at: Vector3, grass := GRASS, rock := ROCK) | StaticBody3D | A round island, grass on top and rock beneath. Its top is at at.y |
tree(at: Vector3, leaves := LEAVES) | Node3D | A tree |
lamp(at: Vector3, colour: Color, reach := 14.0) | Node3D | A gem on a post that lights the ground round it. at is its foot |
trigger(radius: float, on_touch: Callable) | Area3D | Calls on_touch once when the player walks into it |
| Colour | Value |
|---|---|
GRASS | #14a07a |
ROCK | #3b2f6e |
STONE | #6e58cf |
LEAVES | #12a87e |
WOOD | #2c2447 |
var zone := Node3D.new()
zone.add_child(Kit.box(Vector3(3, 0.5, 3), Jewel.AQUA, Vector3(10, 2, 0)))
zone.add_child(Kit.lamp(Vector3(12, 0, 2), Jewel.RUBY))