game-threejs-development

Installation
SKILL.md

Three.js Game Development

Core Workflow

  1. Identify the game genre, target browsers/devices, input methods, camera style, asset format, physics needs, and publishing target.
  2. Structure the app around a clear game loop: input sampling, fixed or semi-fixed simulation, animation mixers, world update, camera update, render, and cleanup.
  3. Keep Three.js scene concerns separate from gameplay state where practical. Avoid hiding game rules inside mesh traversal or material callbacks.
  4. Use the scene graph deliberately: name important objects, group related transforms, avoid excessive per-frame searches, and dispose geometries/materials/textures when removed.
  5. Load assets through explicit loaders and loading states. Prefer GLB/GLTF for 3D assets, texture compression where appropriate, and predictable relative paths for HTML5 hosting.
  6. Verify with browser screenshots and canvas checks across desktop and mobile viewports. Confirm the canvas is nonblank, framed correctly, interactive, and performant.

Three.js Priorities

Installs
3
GitHub Stars
1
First Seen
May 28, 2026