game-architecture

Provide architecture patterns for browser games with EventBus and GameState.

307|37|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/PlayableIntelligence/game-creator --skill game-architecture-playableintelligence
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: game-architecture
Source: https://github.com/PlayableIntelligence/game-creator/tree/main/skills/game-architecture
Command: npx skills add https://github.com/PlayableIntelligence/game-creator --skill game-architecture-playableintelligence

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide architecture patterns and best practices to build well-structured browser games.

Core Features & Use Cases

  • Event-driven communication with a centralized EventBus to decouple modules and enable reliable cross-system messaging.
  • Modular layering (core, systems, gameplay, level, UI) to improve maintainability and collaboration.
  • Centralized state and configuration management (GameState singleton, Constants) to ensure deterministic behavior and consistent tuning.

Quick Start

Create a modular architecture plan for a browser game using the patterns described above.

Frequently Asked Questions about game-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a scalable browser game architecture?

Structure a scalable browser game architecture by applying modular layering across core, systems, gameplay, level, and UI layers to improve maintainability and team collaboration without hard-coded gameplay specifics.

What is the best way to decouple modules in browser games?

Decouple modules in browser games using an event-driven communication system with a centralized EventBus. This approach enables reliable cross-system messaging and separates core logic from UI interactions.

How do I manage game state and configuration for deterministic behavior?

Manage game state and configuration through a centralized GameState singleton and Constants module. This ensures deterministic behavior, consistent tuning, and a reliable single source of truth across all systems.

Can I apply these game architecture patterns to both 2D and 3D browser games?

Yes, these event-driven and modular layering patterns apply directly to both 2D and 3D browser game projects. The architecture focuses on core loop design and state management independent of rendering dimensions.

What's included in a modular game architecture plan?

A modular game architecture plan includes a centralized EventBus for messaging, a GameState singleton, modular layering from core to UI, and clear core-to-ui layering to ensure well-structured browser game development.