center(): Vec2

Get the center point of view.
// add bean to the center of the screen
add([
    sprite("bean"),
    pos(center()),
    // ...
])
kaplay logo

3001.0.0-alpha.18

Misc