Ember Crypt
The crypt is dark: only your lantern lights it. Walk into the four cold braziers to light them. Once all four burn, the gate at the end opens and you can walk out. Lava pits and a saw stand in the way.
It shows off 2D lights with normal maps:
- the lantern is a Spot light on a child of the hero, with Normal Maps, soft Shadows and a little Volumetric glow,
- the brick back wall, the stone floor, the braziers, the hero and a Sprite Shape rubble mound each have a normal map, so their bevels light up on the side facing the lantern,
- each brazier carries its own Light 2D, turned up by an event when you light it.
The rules are an event sheet: there are no code scripts. The hero, stone tiles and pickups are Kenney's New Platformer Pack (CC0). The bricks, braziers and all the normal maps are drawn by the project's code.
Controls: press Start. The joystick runs, the A button jumps. On a computer: A / D or the arrow keys to run, Space to jump.

Open it in the editor
- Download ember-crypt.tge (470 KB).
- Open the editor: editor.jeevagames.com on a computer, or the Android app.
- On the home screen tap Import .tge and pick the file, then open Ember Crypt (imported).
- Press ▶ Play.

How it works
Lights
| Light | Type | What it does |
|---|---|---|
| Darkness | Global | Dim blue, intensity 0.16: just enough to see the walls' outlines. |
| Lantern | Spot | A child of the hero at chest height, so it moves with the hero. Radius 7.5 m, Shadows (softness 0.45), Normal Maps (distance 1.1), Volumetric 0.1. |
| Brazier (×4) | Spot | On each brazier. Cold: radius 1.4 m, a faint ember glow. Lit: an event sets its intensity to 1.8 and its outer radius to 9. Normal Maps and Shadows on. |
| Lava glow (×2) | Freeform | An orange shape over each pit; its rim lights the walls above. |
| Saw glow | Spot | A small red light on a child of the saw, so you see it coming in the dark. |
| Daylight | Spot | Pale blue light round the way out, with a little Volumetric glow. |
The embers, the heart, the saw, the gate and the flag are Unlit: they show at full brightness, so they stand out from the wall even where the lantern doesn't reach. The bricks are a cool grey-blue, so the warm pickups and lights stand out against them.
The Level tilemap and the rubble mound are Shadow Caster 2Ds, so the floor block, the ledges and the mound cast shadows from the lantern and the braziers.

Normal maps
Every lit picture has one:
| Picture | Where its normal map is set | How it was made |
|---|---|---|
| Crypt wall (tilemap, 4 brick tiles) | Tilemap Normal map | From the bricks' height: raised bricks, worn edges, deep mortar, cracks. |
| Level (stone tiles) | Tilemap Normal map | From the tiles' brightness, laid out like the tile sheet. |
| Rubble (Sprite Shape) | Fill normal map, and a Normal map on each edge range | From brightness. The edges bend along the outline, and so do their bumps. |
| Brazier | Sprite Normal map | From the bowl's and stand's round shapes. |
| Player | Sprite Normal map | From brightness. |
Walk past a wall and watch the bricks: the edges facing the lantern light up, the far edges go dark, and it changes as you go.

The rules
- On clicked
StartButton: hide the start screen,Started= 1. Until then (and after you win) the hero doesn't take input. - Braziers: touching a
#brazierwhoselitis 0 setslit= 1, plays its burn animation, and uses Set component setting on itslight2d:intensityto 1.8,outerRadiusto 9.Litgoes up by 1, and its position is stored inCheckXandCheckY(the place you come back to). - The gate: when
Lit≥ 4 (Trigger once), the#gateblocks sparkle and are destroyed, and the camera shakes. - The saw (
#hazard) slides back and forth with Moving platform and costs a heart. The Health behavior knocks you back and keeps you safe for 1.5 s. - Lava, or falling below the level, costs a heart and sets
Respawn= 1. TheRespawnevent puts the hero back at the last brazier lit. - On death of the hero:
healthback to 3 and back to the last brazier. - Embers (coins) and a heart on the top ledge are optional.
- The way out (
#goal):Won= 1, confetti, and the win screen with the time and the embers. - The hint line at the bottom says what to do next.

Saved tests
The project has five saved gameplay tests (Tests panel):
- Start screen waits: the hero doesn't move before Start.
- Walking into a brazier lights it: run right from the start;
Lit= 1 and the checkpoint moves to it. - Lava costs a heart and brings you back.
- The gate stays shut until all four burn: with
Lit= 3, the hero stops at the gate. - Four braziers open the gate; the way out wins.
They also run from the command line: node tge-test.mjs ember-crypt.tge (see From the command line).
Make it yours
- Pick the Lantern (under Player in the Objects list) and change its colour, radius or Distance: a low Distance makes the bumps stand out more.
- Switch Normal Maps off on the lantern to see the walls go flat.
- Give your own sprite a normal map: any normal-map maker's output works, laid out like the picture.
- Add a fifth brazier: copy one, and change the
4in the gate event and the HUD text to5.