Referencia de API
Generada desde el código del motor en cada construcción, así que no puede quedarse desfasada respecto a la versión que instalas.
Por dónde empezar
Hooks
117Everything a scene or an object asks for while it is being built: loading, input, cameras, lights, sound, state and the frame loop.
Creators
32What puts something in the game: the game itself, scenes, sprites, text, models, particles, packs and the rest.
Signals
7Named event channels, and the events an object sends up to whoever holds it.
Por tema
Game
21Starting an instance, the handle a running game exposes, its events, and what the renderer resolved to.
Scenes
68Declaring scenes, switching between them, pausing one without stopping the loop, the transitions, and the scene document.
Lifecycle
8What runs every frame, and what runs when a scene is taken down.
Game objects
81What a scene is filled with: sprites, texts, models, emitters, lines, materials, and destroying them.
Scripts
11Attaching authored behaviour to an object, its declared settings, and what one script can expose to another.
Input
57Keyboard, pointer and gamepad, plus named actions and the remapping layer a player owns.
Store
23State that outlives a scene, with optional persistence.
State
10The state an object keeps while it lives, and code that runs when it changes.
Signals
7Named event channels, and the events an object sends up to whoever holds it.
Sprites
25The 2D drawable and its atlas.
Tilemaps
25Tile layers, their source atlas, and reading a tile back.
Particles
18Emitters, their curves over a particle lifetime, and the document they serialize to.
Layout
13How big something is and where it is: the size and rectangle of what is drawn flat, how a text is set and where its lines break, and points carried between an object and the world.
Camera
27The 3D camera and the 2D one, picking through them, and aiming one.
Masks
5Keeping where something is drawn to a rectangle or to the shape of another object: hard, inverted or soft.
Filters
7Effects run over what one object, and everything under it, draws: an outline, a glow, a drop shadow, or any screen effect kept to that object.
Lighting
24Directional, point, spot and ambient lights, and the two kinds of shadow the era affords.
Geometry
30The shapes models are made of.
Animation
31What moves over time: sprite frames, skeletons and their clips, and tweens.
Materials
57Surfaces, custom shaders, and the file format shaders are written in.
Shader composer
107Writing a shader as typed values, and the node graph a .shader file holds.
Post-processing
36The chain that runs over the finished frame: colour grading and palettes, the tube and the cable, blur, bloom, distortions and the rest.
Color & palettes
9Colour values, indexed palettes and grading tables: the indexed-colour half of the retro look.
Pixels
55Pictures generated in code instead of on a canvas: procedural art, textures for shaders, and pictures that change while the game runs.
Audio
52Sound, music in layers, zones and the listener.
Assets & loading
75Every asset hook and the loader they report through, for progress bars and preloaders.
Tags
3What something is, as many as it likes: finding the things of a kind, and colliding with them.
Hitboxes
12The parts of an object that can be touched, and what to do when two of them meet: hits, pickups and triggers without a physics engine.
Physics
85The body format the engine defines and the seam an adapter registers through. The simulation lives in the adapter.
Project
3The project file: the game window, the main scene and the input map.
Capture
6Photos of the game taken by the game: a region or a box, with or without screen effects, and what each photo shows.
Render
6What the renderer is told and what it answers: backends, capabilities and draw items.
Constants
8What a game reads and never changes, on the root in groups: the renderers, input names, limits, presets and what the engine carries by kind.
Math
40Angles, interpolation, quaternions and seeded randomness.
Easing
32The easing curves, kept apart from Math so they do not swamp it.
Utils
1Id generation and asset path resolution.
Debug
10Lines, grids and axes drawn over the scene, to see what the game is doing.
Net
29Online games: the same scenes in a room of a server, which decides, and in each player's page, which shows it and asks; the server, its rooms, and the lines between them.
Headless
5The game run from Node or Bun with no browser, a frame at a time and the same every time: for tests, scripts and servers that check what a game does.