Game Architecture
Reference patterns for structuring browser games with Three.js or Phaser around a core loop, event bus, and centralized state.
- CCM score
- 52 of 100
- skills.sh installs
- 1.3K
- GitHub stars
- 380
- last updated
- Jul 14, 2026
Own this skill? Claim it
What it does
- Covers core principles: build the minimal input, movement, fail, scoring, and restart loop before any polish
- Includes guidance on EventBus messaging, a single GameState singleton, and centralizing values in
Constants.js - Enforces zero hardcoded balance, asset path, spawn, or timing values inside game logic files
- Designed for browser games built with Three.js or Phaser, with companion
system-patterns.mdcovering pooling and spawn systems
Install
$ npx -y skills add playableintelligence/game-creator --skill game-architecture -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Game Architecture Patterns
Reference knowledge for building well-structured browser games. These patterns apply to both Three.js (3D) and Phaser (2D) games.
Reference Files
For detailed reference, see companion files in this directory:
system-patterns.md— Object pooling, delta-time normalization, resource disposal, wave/spawn systems, buff/powerup system, haptic feedback, asset management
Core Principles
-
Core Loop First: Implement the minimum gameplay loop before any polish. The order is: input -> movement -> fail condition -> scoring -> restart. Only after the core loop works should you add visuals, audio, or juice. Keep initial scope small: 1 scene/level, 1 mechanic, 1 fail condition.
-
Event-Driven Communication: Modules never import each other for communication. All cross-module messaging goes through a singleton EventBus with predefined event constants.
-
Centralized State: A single GameState singleton holds all game state. Systems read state directly and modify it through events. No scattered state across modules.
Details
- Repository
- github.com/playableintelligence/game-creator
- Categories
- Game Development, Frontend & UI Code
- First seen
- Jun 3, 2026
More from playableintelligence/game-creator
All 26- Threejs Game1.2K
- Game Qa1.2K
- Game 3d Assets1.2K
- Make Game1.2K
- Improve Game1.2K
- Add Audio1.1K
- Add Assets1.1K
- Add Feature1.1K
- Review Game1.1K
- Qa Game1.1K
- Add 3d Assets1.1K
- Game Deploy1K
- Meshyai1K
- Quick Game977
- Monetize Game965
- Promo Video965
- Record Promo952
- Use Template943
- Worldlabs934
- Fetch Tweet909
- Game Designer2.2K
- Game Assets1.7K
- Design Game1.6K
- Phaser1.5K
Similar to Game Architecture
More Game Developmentphaserplayableintelligence/game-creator1.5K installsPhaser 3 game development guide for building TypeScript browser games with scenes, EventBus, and restart-safe state.
threejs-gameplayableintelligence/game-creator1.2K installsOpinionated Three.js game development patterns covering architecture, input handling, and shading for browser-based 3D games.
game-enginegithub/awesome-copilot13.7K installsBrowser game engine guide covering Canvas, WebGL, physics, controls, and publishing workflows.
threejs-gameplay-systemsmajidmanzarpour/threejs-game-skills4.5K installsStructured scaffold and gameplay system guidance for building playable Three.js games with Vite and TypeScript.