Clean game architecture makes browser games easier to build and maintain. Key patterns like the core loop, event-driven messaging, and centralized state are covered. These patterns work for both 2D and 3D games made with Phaser or Three.js.
Modules talk through a shared EventBus without direct imports. A single GameState holds all game data. The Orchestrator controls the game flow from boot to restart. Every choice keeps your game restart-safe and easy to change.
Start with just one mechanic and one level. Add polish only after the core loop works. Use Constants.js to store all numbers and paths. This approach keeps code clean and game reliable.
Global
mkdir -p ~/.claude/skills/game-architectureProject
mkdir -p .claude/skills/game-architectureSource Repository
Godot Gdscript Patternswshobson/agents
Learn Godot 4 GDScript patterns for signals, scenes, state machines, and optimization
Game Enginegithub/awesome-copilot
Build web-based game engines and games using HTML5 Canvas WebGL and JavaScript
Unity Ecs Patternswshobson/agents
Master Unity ECS DOTS Jobs and Burst for efficient game development
Multiplayer Gamerivet-dev/skills
Ready made patterns for building any multiplayer game fast
Threejs Geometrycloudai-x/threejs-skills
Build 3D shapes with built-in and custom geometry using Three.js
Threejs Materialscloudai-x/threejs-skills
Pick the right Three.js material for realistic or stylized 3D objects
Game Developerjeffallan/claude-skills
Build fast, smooth games with Unity Unreal Engine patterns and performance tips
Game Developmentsickn33/antigravity-awesome-skills
Choose your platform and build games with proven patterns and performance tips