The heavier bits: about 800k of that is the .webp animations showing how to play. The actual game has a bunch of image resources — including font sprites for the timer and the tiles — that are probably a few hundred k as well. The regular site stuff is sveltekit.
The game script is around 300k. I used Phaser [0] — I originally wrote the game in Swift for iOS and utilized one of that platform’s gaming frameworks(SpriteKit). I rewrote it in TypeScript for the web and wanted a similar framework to ease the porting.
The game script is around 300k. I used Phaser [0] — I originally wrote the game in Swift for iOS and utilized one of that platform’s gaming frameworks(SpriteKit). I rewrote it in TypeScript for the web and wanted a similar framework to ease the porting.
[0] https://phaser.io