Skip to main content

Overview

The Game Development skill is an orchestrator that provides core game development principles and routes to specialized sub-skills based on platform, dimension, and specialty area. It teaches fundamental patterns applicable across all game types.

What This Skill Provides

  • Game loop fundamentals: Input → Update → Render pattern with fixed timestep
  • Pattern selection: State machines, object pooling, ECS, behavior trees
  • Input abstraction: Platform-independent action mapping
  • Performance budgeting: 60 FPS frame budget allocation (16.67ms)
  • AI selection: FSM, behavior trees, GOAP, utility AI by complexity
  • Collision strategies: AABB, circle, spatial hash, quadtree
  • Sub-skill routing: Directs to web, mobile, PC, VR/AR, 2D, 3D, multiplayer, etc.
  • Universal anti-patterns: Common mistakes across all platforms

Sub-Skills

The skill routes to specialized sub-skills:

By Platform

  • web-games: HTML5, WebGL browser games
  • mobile-games: iOS, Android mobile games
  • pc-games: Steam, desktop games
  • vr-ar: VR/AR headset games

By Dimension

  • 2d-games: Sprites, tilemaps, 2D physics
  • 3d-games: Meshes, shaders, 3D rendering

By Specialty

  • game-design: GDD, balancing, player psychology
  • multiplayer: Networking, client-server architecture
  • game-art: Visual style, asset pipeline, animation
  • game-audio: Sound design, music, adaptive audio

Use Cases

  • Building web-based browser games
  • Creating mobile games for iOS and Android
  • Developing PC games for Steam or desktop
  • Implementing VR/AR experiences
  • Designing game mechanics and balance
  • Adding multiplayer networking
  • Optimizing game performance for 60 FPS

Which Agents Use This Skill

This skill is commonly used by:
  • Game developers across all platforms
  • Technical game designers implementing mechanics
  • Graphics programmers optimizing rendering
  • Gameplay programmers building game systems

Key Principles

The Game Loop

Every game, regardless of platform, follows this pattern:
INPUT  → Read player actions
UPDATE → Process game logic (fixed timestep)
RENDER → Draw the frame (interpolated)
Fixed Timestep Rule:
  • Physics/logic: Fixed rate (e.g., 50Hz)
  • Rendering: As fast as possible
  • Interpolate between states for smooth visuals

Pattern Selection Matrix

PatternUse WhenExample
State Machine3-5 discrete statesPlayer: Idle→Walk→Jump
Object PoolingFrequent spawn/destroyBullets, particles
Observer/EventsCross-system communicationHealth→UI updates
ECSThousands of similar entitiesRTS units, particles
CommandUndo, replay, networkingInput recording
Behavior TreeComplex AI decisionsEnemy AI

Performance Budget (60 FPS = 16.67ms)

SystemBudget
Input1ms
Physics3ms
AI2ms
Game Logic4ms
Rendering5ms
Buffer1.67ms

Optimization Priority

  1. Algorithm (O(n²) → O(n log n))
  2. Batching (reduce draw calls)
  3. Pooling (avoid GC spikes)
  4. LOD (detail by distance)
  5. Culling (skip invisible)

Input Abstraction

Abstract input into ACTIONS, not raw keys:
"jump"  → Space, Gamepad A, Touch tap
"move"  → WASD, Left stick, Virtual joystick
Enables multi-platform, rebindable controls.

AI Selection by Complexity

AI TypeComplexityUse When
FSMSimple3-5 states, predictable behavior
Behavior TreeMediumModular, designer-friendly
GOAPHighEmergent, planning-based
Utility AIHighScoring-based decisions

Collision Strategy

TypeBest For
AABBRectangles, fast checks
CircleRound objects, cheap
Spatial HashMany similar-sized objects
QuadtreeLarge worlds, varying sizes

Anti-Patterns

Don’tDo
Update everything every frameUse events, dirty flags
Create objects in hot loopsObject pooling
Cache nothingCache references
Optimize without profilingProfile first
Mix input with logicAbstract input layer

Routing Examples

Browser-based 2D platformer

  1. Start with game-development/web-games for framework selection
  2. Then game-development/2d-games for sprite/tilemap patterns
  3. Reference game-development/game-design for level design

Mobile puzzle game

  1. Start with game-development/mobile-games for touch input and stores
  2. Use game-development/game-design for puzzle balancing

Multiplayer VR shooter

  1. game-development/vr-ar for comfort and immersion
  2. game-development/3d-games for rendering
  3. game-development/multiplayer for networking

Remember

Great games come from iteration, not perfection. Prototype fast, then polish.

Build docs developers (and LLMs) love