Dragon Game

— updated

A little tech demo of a game contained in a single html file.

It features a custom encoding scheme for sprites and audio to facilitate better compression compared to base64 encoding. Additionally, each tick, the game bakes all the sprites and interpolation data into a single buffer. This allows the game to completely offload interpolation to the graphics card and render each frame in a single draw call. There’s further room for improvement by moving the game logic into a worker and sending the geometry to the main window each tick.

#game #coding more