Configuration options
Logical viewport width (used for entity coordinates)
Logical viewport height
OptionalupdateHz?: number | "frames"Tick frequency:
"frames" = run updates every render frame (RAF-synced, variable timestep)A KaylaGame instance
Creates a new game instance that coordinates scenes, renderers, and a shared ticker.
The game manages the global update loop (via
updateHz) and allows attaching multiple renderers and scenes. Start the game withgame.start()to begin ticking and rendering.