What problem does it solve?
This Skill provides a distilled set of game-architecture patterns and best practices for browser games, helping teams design scalable, maintainable code bases instead of ad-hoc implementations.
Core Features & Use Cases
- Event-Driven Communication: Modules communicate through a singleton EventBus, preventing tight coupling and enabling flexible, testable systems.
- Centralized State: A single GameState singleton holds game data, with read/write governed by events and a clear data model.
- Configuration Centralization: All tunable values live in a Constants file to avoid hardcoded numbers and simplify balancing.
- Orchestrator Pattern: A Game.js-style orchestrator initializes systems, controls flow (menu, loading, gameplay, win/lose), and runs the main loop.
- Code Organization: Clear layers (core/, systems/, gameplay/, level/, ui/) enforce separation of concerns and scalable growth.
Quick Start
Review the repository structure under core/, systems/, gameplay/, level/, and ui/ and apply EventBus, GameState, and Constants patterns to new modules.