Deepdelve: Action RPG Kit with Click-to-Move, Loot and Generated Dungeons
README.md
arpgKit.look
Each dungeon look's light, applied on every player's machine after a level is built. It darkens the ambient and moon light, makes the level's torches warm, bright and flickering, dims its room fills so light pools, sets the hero's carried light, and adds fog (so the void past the walls goes to the look's dark), bloom and a colour grade.
Look.apply(theme): light the built level in a theme's look (ArpgCamera calls it onlevelBuilt).Look.tick(dt): flicker the torches; call once a frame (ArpgCamera does).Look.lightFor(theme): the settings a theme resolves to. A theme overrides any of them with alighttable inArpg.defineTheme:ambient,ambientI,moon,moonI,fill,torch,torchI,torchR,flicker,hero,heroI,heroR,fog,fogDensity,bloom,bloomThreshold,contrast,saturation,brightness.Look.presets(),Look.clear().