Camera

:= []

Camera module - pure 2D camera settings for world-space drawing.

A camera is a value, not a host-owned resource. Build the camera you want for the current frame and pass it to Draw.with_camera!.

new : Settings -> Camera2D
centered : Vec2, Vec2 -> Camera2D

Place target at the center of a screen with the given size.

follow : Vec2, { screen : Vec2, zoom : F32 } -> Camera2D

A common player-follow camera with a configurable zoom.