Lighting
Light matters once a map is dark: at night, indoors, or when the map's darkness is turned up. A frame can draw up to 512 lights at once.
A map's darkness
Map > Map Settings > Ambient darkness, saved in the manifest as ambient <0-100>.
- 0
- Full day. The lighting pass does not run.
- 50
- Evening. Lights read clearly and the world is still easy to see.
- 70 and up
- Dungeon dark. What is not lit is barely there.
- 100
- Black between the lights.

player row of lights.vfa).The interface, menus and dialog never darken.
The editor shows the map lit while you work. Tick Darkness on the viewport's View menu to see it dark, lights and all, the way play does.
Lights on art
assets/data/lights.vfa gives a piece of art its own light. Every placed copy of that picture then glows, so four hundred torches need one row.
comp light Torch1.png -1 -
field radius 180
comp light Window1.png -1 -
field rect 300x120
comp player player -1 -
field radius 220- radius
- A round pool of light, radius in world pixels. 180 to 260 feels like a torch; 400 and up like a bonfire.
- rect
- WxH, a rectangle: light spilling from a window or a doorway.
- player
- The
playerrow is a light that follows the character. Without it, the dark wins and the player needs a torch.
field beams on gives visible shafts of light once the world is dark enough, shaped by beamcount, beamdir, beamfan, beamcolour (RRGGBB) and beamint:
comp light Window1.png -1 -
field radius 200
field beams on
field beamcount 1
field beamdir 135
field beamfan 0
field beamcolour AEE8FF
field beamint 0.8Count is 1 to 8; angle 0 points right, 90 down, 270 up; fan is the spread. A row can also carry height (0 the sprite's feet, 1 its top), intensity, feather (a rectangle's soft edge), flicker (flickers a second) and regularity (0 to 1).
Lights on one prop
A placed prop's Light section in Properties gives that one prop a light of its own, separate from its art's row in lights.vfa: its radius or rectangle, height, intensity, feather, flicker and regularity. With the Light box off, the Glow row edits the art's own row instead, for every copy at once.
Light groups
Give lights the same Light group (on a prop's Light section, or on its art's glow) and one line of script moves them all together: switch a whole hall off, dim it, make it flicker, or fade it over a few seconds.
light group hall off
light group hall dim 0.4
light group hall fade 1 3A flashlight
A character whose document has a Flashlight component carries a cone of light on a battery. In play, T turns it on and off, and the battery runs down while it burns. See Characters.
Cast shadows
shadows on in game.vdc makes every solid object cast a shadow away from the sun. With a day and night cycle the shadows swing and stretch through the day. Shadows are only a look; they never change where anyone can walk.
In the editor, the viewport's Quality menu limits how many lights and how fine the shadows are while you work. The game uses its own settings.
From a script
light player 180
light Torch1.png color ffb060
light Torch1.png flicker 6 0.5light changes a light while the game runs; lights.vfa is where lights are written down. Its shapes are round, square, vertical, horizontal and rect, and it can flicker, strobe and carry beams.