Volver a la referencia
Creators
What puts something in the game: the game itself, scenes, sprites, text, models, particles, packs and the rest.
32 símbolos
Game
Scenes
Game objects
createMaterialMakes a material: a shader of your own, and for models the surface it is drawn over.createMeshPuts a model in the scene: a shape, somewhere, with a surface.createMeshInstancesPuts many of one shape in the scene, drawn in one go: a field of grass, a hillside of rocks, a forest.createModelPuts a loaded model in the scene.createNineSlicePuts a picture in the scene that can be any size without deforming: a panel, a button, a dialogue box, a health bar.createPackPlaces one thing a pack offers: a box, or a scene as one part of the scene that creates it.createParticlesPuts an emitter in the scene: a place that makes particles, following an effect from a file.createParticles3dPuts an emitter in a scene in three dimensions, following an effect written for them.createPolygonPuts a shape in the scene whose corners the game moves: a picture stretched over an outline that can change every frame.createShapesPuts shapes in the scene, drawn by the graphics card as they are each frame: rectangles, with rounded corners or not, circles, ellipses and slices of them, outlines of any number of corners (hollowed in too, a star or a letter), and lines as wide as asked for.createSpriteTextureMakes a picture and fills it with a component: whatever component draws, and whatever it creates with useSpawn, ends up in the picture instead of on the screen, every frame.createTextWrites something on screen with a bitmap font: a score, a title, a menu, "PRESS START".createViewA view of the world in a rectangle of the screen: half of a split screen, a minimap in a corner, a rear-view mirror.
Store
Signals
Sprites
createBackdropA strip of picture that repeats endlessly across the world and moves with the camera only so much: the far layers of a platformer, clouds, hills, a city skyline, as the 16-bit consoles drew them.createMode7A floor seen in perspective that turns and stretches as the camera moves over it, the Mode 7 of the 16-bit consoles: the track of a kart racer, the world map seen from the air, the arena that spins under a boss.createSpritePuts a picture in the scene: an image from useLoadTexture, a frame of a sheet, or a plain coloured rectangle when it has neither.
Tilemaps
Geometry
Pixels
createPixelsnacatamalon/pixelsA new picture to paint on in code, transparent or filled with one colour: what to use instead of a <canvas> whenever a picture has to be generated rather than drawn.createPixelTexturenacatamalon/pixelsTurns a picture into a texture a sprite, a model's material or a shader shows like any image loaded from a file.
Assets & loading
Physics
createPhysicsBody2dA complete flat collider from a partial description.createPhysicsBody3dA complete collider in three dimensions from a partial description: the sibling of createPhysicsBody2d, filling in the same defaults.createRetroBody2dA complete retro collider from a partial description: the sibling of createPhysicsBody2d, so every record that reaches a document is complete by construction.
Net
createRoomnacatamalon/netMakes a room: the game's own scenes running with no screen and no sound, deciding what happens, with players coming in over their connections.createRoomStorenacatamalon/netDeclares a room store: data of one room (its score, its round, whose turn it is) that the room changes and every player in it sees, a moment later, read only.createServernacatamalon/netMakes a server: it takes players' connections, asks admit who gets in, and gives each room asked for a game of its own (createRoom) running the game's scenes, which ends when its last player leaves.