game-architecture

Official

Build robust browser-game architectures fast.

AuthorOpusGameLabs
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: game-architecture
Download link: https://github.com/OpusGameLabs/game-creator/archive/main.zip#game-architecture

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.