make<T>(comps?: CompList): GameObj

Create a game object like add(), but not adding to the scene.

sincev3000.1

const label = make([
    text("oh hi"),
])

add([
    rect(label.width, label.height),
    color(0, 0, 255),
    children(label),
])
kaplay logo

3001.0.0-alpha.18

Misc