Damn! I didn’t even see a slight hint of CSS variable. Truly impressive 😲😮
Love to read the postmortem of this game.
I used Sass which compiles away the variables: https://github.com/starzonmyarmz/gamedevjs-jam-2021/tree/main/sass
Ah that’s make sense now. I see a bunch of animation properties inside @for and @if loop.
Thanks for sharing the code. New tricks I learn from scss+nunjucks combo.