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

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

since

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

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

Misc