J-01

Dynamic 2D lights & soft shadows

Point lights and spotlights with soft falloff, colour and flicker; lights that ride on actors (the hero's torch, fireballs) and flash on impacts; walls, pillars and crates cast soft shadows in real time. A light map is composited in a WebGL post pass, so the HUD stays unlit. Without WebGL the plain 2D game shows.

UNLITLIGHTS
torch
WebGL2 light map - -

Light editor: click a light to select it, drag to move it, click empty floor to place a new one, Del removes it. The hero's torch and the fireball follow their actors. The top HUD bar is passed as uiRects, so it stays unlit.