Floor Is Lava: Developer Diary | Fixing the Duplicate Animation Bug (June 6, 2026)

Views: 3

Saturday, June 6, 2026; approx. 8:30 p.m. to past 2:00 a.m.


Floor Is Lava app icon
Get Floor Is Lava on Google Play

The duplicate-animation mystery

A genuinely maddening bug tonight: the start animations for Episode One, Episode Two, and beyond were all showing the exact same image, no matter what was changed. Chasing it meant re-testing the raw Claude Design export (worked fine), then the copied version in the game’s own folder (broken), then uploading the entire zip to Claude AI to diagnose from scratch. The actual cause: the sprite sheets hadn’t been added to each episode’s folder, and the HTML file had 14 duplicated, near-identical animation functions differing only in which art asset they called.

The fix; collapsing those into one function that takes the art asset as a variable; saved roughly 5,000 lines of code. Then came the tedious but necessary part: manually plotting the coordinates of each of the six sprites on every sprite sheet, by hand, to match the right relic to the right episode.

Desktop payments actually fire

In parallel, desktop monetization through Paddle came together; webhooks, a new secrets folder, command-line deployment steps followed mostly on faith. Tested a purchase with a 100%-discounted coin pack; the transaction sat pending in Firestore without firing, no amount of refreshing showed the coins in-game, until finally pulling fresh data from the cloud confirmed it: 3,000 extra coins, correctly recorded.

🎮 Game Rules Log: June 6, 2026

  • Episode start animations now correctly reference each episode’s own sprite/relic, not a shared duplicate
  • Desktop coin purchases confirmed working end-to-end via Paddle + Firestore

Focus: duplicate-animation bug traced and fixed (-5,000 lines), Paddle desktop payments confirmed working.

Read what happens next in the dev diary: the next entry.

Next Post
Sunday, June 7, 2026; approx. evening to 3:00 a.m. Get…