Optionalconfig: { height?: number; title?: string; width?: number }Seconds elapsed since last frame
Current frames per second
Number of frames processed
Window title
Total elapsed time in seconds
Window height in pixels
Window width in pixels
Adds a light to the 3D scene
Attaches a Transform2D component to the entity
Starts a new render frame with the given clear color
Optionalr: numberOptionalg: numberOptionalb: numberOptionala: numberFast circle overlap test
Clears the depth buffer
Signals the window to close
AABB vs AABB collision test with contact
Circle vs AABB collision test
Circle vs circle collision test
Configures fog settings
Configures the ground grid
Configures the skybox/background color
Creates a 3D cube
Creates a 3D cylinder
Optionalsegments: numberCreates a 3D plane
Creates a 3D sphere
Optionalsegments: numberReleases all engine resources
Destroys a 3D object
Destroys a previously loaded texture
Disables alpha blending
Disables depth testing
Distance between two points
Squared distance between two points
Draws a colored rectangle
Optionalcolor: IColorDraws a sprite with source rectangle for sprite sheets
Optionalcolor: IColorEnables depth testing
Finishes the current frame and presents it to the screen
Returns the number of living entities
Returns FPS statistics from the debug overlay rolling window
Returns the mouse movement since last frame
Returns the mouse position relative to the window
Returns rendering statistics for the current frame
Returns the scroll wheel delta this frame
Returns the entity's Transform2D, or null if absent
Returns true if the action was pressed this frame
Returns true if the action was released this frame
Returns true if the action is currently pressed
Returns true if the key was pressed this frame
Returns true if the key was released this frame
Returns true if the key is currently held down
Returns true if the mouse button was pressed this frame
Returns true if the mouse button was released this frame
Returns true if the mouse button is currently held
Loads a texture from a file path and returns its handle
Maps an action name to a key
Tests if a point is inside a circle
Tests if a point is inside a rectangle
Removes a light
Renders all 3D objects
Runs the game loop. Calls the update callback each frame with delta time. Blocks until the window is closed.
Sets the 3D camera position
Sets the 3D camera rotation
Sets fog visibility
Sets the screen corner where the FPS overlay is displayed
Enables or disables the FPS debug overlay
Sets how often FPS statistics are recomputed
Sets grid visibility
Sets a 3D object's position
Sets a 3D object's rotation in degrees
Sets a 3D object's scale
Overwrites the entity's Transform2D
Sets the rendering viewport
Returns true if the window close has been requested
Creates a new empty entity
Updates a light's properties
StaticcreateOptionalconfig: { height?: number; title?: string; width?: number }
Main game engine instance. Creates a window, manages rendering, input, and ECS.