Home Run Derby PWA combines a React interface with Phaser gameplay, player accounts and saved progression. It is designed to work on both desktop and mobile, with the same game rules shared across the frontend and API.
01THE CHALLENGE
React and Phaser have to feel like one product.
The project has a conventional React application and a real-time Phaser game. Player profiles, tournaments, stadiums, ball flight and saved progress all have to agree, even though they run in different parts of the application.
02WHAT I DID
I split the project into focused packages.
I organized the code into web, API, shared and game-core packages. Shared TypeScript contracts keep the interface and gameplay aligned, while focused tests cover motion, avatars, tournaments, persistence and stadium-specific behavior.
03WHERE IT STANDS
New game systems can be added safely.
The game now has a structure where I can work on a stadium, animation or gameplay system without rewriting the rest of the product. Each addition can be tested on its own before it is connected to the full game.