Ember is discontinued. It still works, but it gets no more updates or support. Back to uayi.org
Home · Terrified Gorillas · Glimmerwood · Starfall Hollow · ‹ Prev Next ›
Ember
Download

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

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.

Placed copies are independent: changing the prefab file later doesn't change copies already in a scene.

Models and textures

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.

Ember 1.1 documentation. Found a mistake? The source of this page is site/docs/scenes-and-objects.md in the Ember source.