Making games
Scenes and objects
A scene is a level: a list of objects (also called entities). Each object has a name and a transform (position, rotation, scale), plus any number of components that give it behaviour. A crate is an object with a Mesh Renderer (what it looks like) and a Collider (how it collides). A player is the same, plus a Script.
Scenes are saved as .ember files (JSON inside) under assets/scenes/. Each file records its format
version; older scenes are converted when they open, and a scene saved by a newer Ember is refused with a
message instead of being half-read. The project's start scene is set
in Project Settings > Player > Start scene. Scripts can switch level with scene.load("scenes/level2.ember").
Units and axes
- 1 unit = 1 metre.
- Y is up. Objects face −Z (their forward).
- Physics and scripts step at a fixed 60 Hz; rendering interpolates between steps, so motion stays smooth at any frame rate.
Components
Add them with Inspector > Add Component (or right-click an object > Add component).
| Component | What it does |
|---|---|
| Mesh Renderer | draws a model: builtin:cube, builtin:sphere, builtin:plane, builtin:cylinder or any model file. Texture, tint, UV scale, roughness, metallic, emissive glow, visible. |
| Collider (Collider & Physics) | makes it solid or a trigger. Static, kinematic or dynamic; box, sphere, capsule, convex hull, exact mesh, terrain. See Physics and colliders. |
| Light | directional (sun), point or spot; colour, intensity, range, cone; Realtime / Mixed / Baked. See Lighting. |
| Camera | field of view; the primary camera is what the game sees. |
| Audio Source | a sound: volume, pitch, loop, play on start, 3D (spatial) with min / max distance. |
| Water | a body of water with waves, reflections, refraction and foam; dynamic objects float in it. |
| Terrain | a sculpted, painted landscape with trees and grass. See Terrain. |
| Skeletal Animation | plays the clips inside a rigged model (walk, run, jump…) with crossfades. |
| Animator (keyframes) | plays .anim keyframe clips made in the Animation timeline. |
| Crash Deformation | hard hits dent the model around the impact point. |
| Joint | hinges, ball joints, sliders, springs, ropes and glue between bodies. See Physics and colliders. |
| Particle Effect | fire, smoke, sparks, explosions, rain, snow… See Particle effects. |
| Script | a Lua script, a Blocks file (.blocks) or a visual script (.graph). |
Objects can also be marked as networked (network in the scene file, or spawned with net.spawn).
See Multiplayer.
Prefabs
A prefab is a group of objects saved as one file, so you can place copies of it: a house with its door and lamp, a lap of track, an enemy with its effects.
- Select the objects (Ctrl-click or drag a box), right-click one > Save as prefab…, and name it. It's
saved in
prefabs/, with its origin at the bottom of the group under the object you right-clicked. - Drag the
.prefabfrom the Assets panel into the viewport (or right-click it > Place in the scene) to place a copy where you drop it. All of its objects come selected, ready to move. - Scripts place them too:
scene.spawn_prefab("prefabs/house.prefab", vec3(0, 0, 20), 90)returns the new objects (the last number turns the copy, in degrees).
Placed copies are independent: changing the prefab file later doesn't change copies already in a scene.
Models and textures
- Drag a model file from your desktop or the Assets panel into the viewport to place it. It gets a fitted collider automatically (exact shape, static), so you can walk on it straight away.
- Drop a texture on an object to retexture it, a sound to give it one, a script to attach it, and a skybox image on the sky to change the sky.
- glTF / GLB, OBJ, IQM, VOX and M3D load directly. FBX, DAE, Blend, 3DS, STL, PLY and about 50 more
formats are converted on import into
.imported/next to the file, and refreshed when the original changes. - Images: PNG, JPG, BMP, TGA, GIF, QOI, PSD, DDS, HDR, KTX, ASTC load directly; WebP, EXR and SVG are converted.
The environment
The Render panel holds the scene's sky and look: skybox panorama or procedural sky colours, sky
brightness, fog, exposure, tonemapper (ACES, AgX or PBR Neutral), the Time of day presets and baked
lighting. Scripts change it at runtime with the env.* functions.
Files in a project
MyGame/
project.ember name, version, start scene, Project Settings
assets/
scenes/ .ember scenes
scripts/ .lua, .blocks, .graph
models/ textures/ sounds/ skies/ anims/
terrain/ .terrain heightmaps + paint + trees (saved with the scene)
lighting/ .probes baked lighting
credits.json attributions for imported assets that need them
export/ what File > Export Game makes
Engine files (shaders, the model library, stock scripts, skies) live with Ember, not in your project. A file in your project with the same path overrides the engine's.