Repository navigation
Lanternfall 1.10.0: Foundations
▶ Play the latest version free on itch.io · Read the write-up · 💛 Donate
To play this exact version, download lanternfall-1.10.0.html below and open it in any modern browser. It runs offline from that one file.
Groundwork for 2.0 and for phones. It finishes EN-5 and TD-4 from the roadmap, and TD-7. The game plays the same; it draws faster.
Added
- Tile cache (
src/tilecache.js). The field used to redraw every tile on screen every frame. Now each map is drawn once into 8×8-tile chunks, and each frame only the squares that move (water, lamps, braziers, kelp, palms) are redrawn. With the CPU slowed 4× to stand in for a phone, a frame on the world map takes about 4 ms instead of 17, a town 6.5 instead of 14, and a dungeon half as long. The sea floor, which is mostly moving kelp, gains little. Add?nocacheto the URL to turn it off. - Load-order check (
tools/load_check.js).build.pynow runs the joined script once in Node and fails if it throws while loading, naming the file and line. It catches the bug class behind 1.9'sLOOKScrash: a top-level value that reads a name declared in a later file. CI runs it with every build. tilesplay-test scenario: cached tiles compared with tiles drawn one by one, on 18 maps at scales 1, 2 and 1.37; a changed tile rebuilding the cache; and a speed check. Added to CI.
Changed
- Monster art and battle backgrounds have one file each: 21 families in
src/monsters/and 15 backgrounds insrc/backgrounds/, each registering itself inMONSTER_ART/MONSTER_SIZE/BATTLE_BGS.art.jswent from 1,520 lines to about 960. Every monster and background was checked to draw pixel for pixel as before.build.pytakes every file in those folders. - The field camera snaps to whole screen pixels, so cached tiles line up exactly.
- Desert palms and glowing ground follow the game's clock instead of the wall clock, so they hold still while the field is paused.
Fixed
- Tiles no longer change slightly depending on which tile was drawn before them (some left a rounded line cap behind), so mountain outlines no longer shift as the camera moves.
- The diving bell's line on the sea floor no longer pops in as you scroll down to it.