Built playable ads with Phaser.js, gradually replacing JavaScript with TypeScript and introducing a type-based build pipeline and a Pure ECS framework.
My work
- Built around five or six playable ads with Phaser.js
- Gradually replaced JavaScript with TypeScript, starting with the second ad
- Moved the build pipeline onto TypeScript types from the third ad to build stable tools
- Began using an ECS approach from around the third or fourth ad to cut duplicate code and build content from combinations of components, then introduced a Pure ECS framework around the final project (component stores, an EntityId that packs generation and identity into one integer)
- Managed hierarchies in the ECS layer and applied the results to Phaser.js
- Described skills, enemies and more in a data-driven way to respond quickly to change requests, and work became noticeably faster from around the third or fourth ad