Function

center

(): Vec2

Get the center point of view.

// add bean to the center of the screen
add([
    sprite("bean"),
    pos(center()),
    // ...
])

returns The center point of the view.

since v2000.0

group Info

kaplay logo

Layer

Miscalenous