Bitflinger Games docs

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.

CallGives backWhat it does
material(color: Color, roughness := 0.85, emission := 0.0)StandardMaterial3DA plain material. emission above 0 makes it glow
mesh(shape: Mesh, color: Color, at := Vector3.ZERO, emission := 0.0)MeshInstance3DAny Godot mesh, coloured. Nothing collides with it
box(size: Vector3, color: Color, at: Vector3)StaticBody3DA solid box you can stand on. Its top face is at at.y
island(radius: float, at: Vector3, grass := GRASS, rock := ROCK)StaticBody3DA round island, grass on top and rock beneath. Its top is at at.y
tree(at: Vector3, leaves := LEAVES)Node3DA tree
lamp(at: Vector3, colour: Color, reach := 14.0)Node3DA gem on a post that lights the ground round it. at is its foot
trigger(radius: float, on_touch: Callable)Area3DCalls on_touch once when the player walks into it
ColourValue
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))