Categorías
Referencia de API

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.

1122 símbolosTodo lo de estas páginas entra en la versión 1.0.0.La referencia está en inglés, que es el idioma en el que se documenta el motor.

Por dónde empezar

Por tema

Game

21

Starting an instance, the handle a running game exposes, its events, and what the renderer resolved to.

Scenes

68

Declaring scenes, switching between them, pausing one without stopping the loop, the transitions, and the scene document.

Lifecycle

8

What runs every frame, and what runs when a scene is taken down.

Game objects

81

What a scene is filled with: sprites, texts, models, emitters, lines, materials, and destroying them.

Scripts

11

Attaching authored behaviour to an object, its declared settings, and what one script can expose to another.

Input

57

Keyboard, pointer and gamepad, plus named actions and the remapping layer a player owns.

Store

23

State that outlives a scene, with optional persistence.

State

10

The state an object keeps while it lives, and code that runs when it changes.

Signals

7

Named event channels, and the events an object sends up to whoever holds it.

Sprites

25

The 2D drawable and its atlas.

Tilemaps

25

Tile layers, their source atlas, and reading a tile back.

Particles

18

Emitters, their curves over a particle lifetime, and the document they serialize to.

Layout

13

How 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

27

The 3D camera and the 2D one, picking through them, and aiming one.

Masks

5

Keeping where something is drawn to a rectangle or to the shape of another object: hard, inverted or soft.

Filters

7

Effects 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

24

Directional, point, spot and ambient lights, and the two kinds of shadow the era affords.

Geometry

30

The shapes models are made of.

Animation

31

What moves over time: sprite frames, skeletons and their clips, and tweens.

Materials

57

Surfaces, custom shaders, and the file format shaders are written in.

Shader composer

107

Writing a shader as typed values, and the node graph a .shader file holds.

Post-processing

36

The chain that runs over the finished frame: colour grading and palettes, the tube and the cable, blur, bloom, distortions and the rest.

Color & palettes

9

Colour values, indexed palettes and grading tables: the indexed-colour half of the retro look.

Pixels

55

Pictures generated in code instead of on a canvas: procedural art, textures for shaders, and pictures that change while the game runs.

Audio

52

Sound, music in layers, zones and the listener.

Assets & loading

75

Every asset hook and the loader they report through, for progress bars and preloaders.

Tags

3

What something is, as many as it likes: finding the things of a kind, and colliding with them.

Hitboxes

12

The 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

85

The body format the engine defines and the seam an adapter registers through. The simulation lives in the adapter.

Project

3

The project file: the game window, the main scene and the input map.

Capture

6

Photos of the game taken by the game: a region or a box, with or without screen effects, and what each photo shows.

Render

6

What the renderer is told and what it answers: backends, capabilities and draw items.

Constants

8

What 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

40

Angles, interpolation, quaternions and seeded randomness.

Easing

32

The easing curves, kept apart from Math so they do not swamp it.

Utils

1

Id generation and asset path resolution.

Debug

10

Lines, grids and axes drawn over the scene, to see what the game is doing.

Net

29

Online 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

5

The 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.