Documentation · the essentials

Hooks and creators

Most of a game is written with two kinds of function. Hooks ask for things while a scene or an object is being built: load an image, read the keyboard, run code every frame. Creators put something in the game: a sprite, a text, a model, a scene. They are all here, by topic and with an example.

The descriptions and examples come from the engine's own documentation, which is in English.

Hooks

71 functions

What a scene or an object asks for while it is being built: loading, input, cameras, lights, sound, state and the game loop.

useGameuseSceneuseSceneUnmountuseTimeruseUpdateuseSelfuseSpawnuseTransform…

Creators

18 functions

What puts something in the game: the game itself, scenes, sprites, text, models, particles, packs and the rest.

createGamecreateScenecreateMaterialcreateMeshcreateModelcreateNineSlicecreatePackcreateParticles…