A web-native 3D fighting game prototype with a 3-action combat system: Block, Punch, Kick.
Built with Three.js and vanilla JavaScript. No build tools required — serve statically and play.
python3 -m http.server 4173- Play — 1v1 best-of-3 rounds against a CPU opponent
- Demo — Interactive animation showcase with pose controls and speed adjustment
- Move:
A/Dor←/→ - Vertical lane:
W/Sor↑/↓ - Punch:
K - Kick:
L - Camera zoom: scroll wheel
- Camera orbit: right-click drag or
Q/E
- Floating joystick (left half of screen)
- Punch / Kick buttons (right side)
- Two-finger pinch to zoom, two-finger rotate to orbit
index.html Entry point + UI structure
styles.css Styling (HUD, controls, demo panel, compass widget)
src/
game.js Simulation, state machine, input, AI, demo mode
renderer3d.js Three.js scene, camera, animations, pose system
assets/
RobotExpressive.glb 3D character model with skeletal animations
- Combat — 3-hit punch combo with uppercut finisher, hitstop, pushback, SF2-style proximity guard. 120 Hz fixed-step deterministic simulation with input buffering.
- Camera — Dynamic zoom tracking fighter distance, orbital rotation, compass widget. See Camera System.
- Pose System — Absolute world-space bone targeting with per-model profiles. See Pose System.
- AI — Spacing, reactive block, attack commitment, tunable difficulty.
| Document | Description |
|---|---|
| Game Design Document | Combat spec, frame data, state machine, milestones |
| Camera System | Orbital camera, dynamic zoom, compass widget, controls |
| Pose System | Rest-pose bone targeting, model profiles, direction abstraction |
| SF2 Blocking Research | Proximity guard mechanics reference |
| Fighting Game Mechanics | Frame data and design patterns from modern fighters |
| 3D Characters & Animation | Skeletal rigging pipeline and Three.js integration |
| Integration Plan | 2D-to-3D migration with RobotExpressive model |
| CLI Animation Tools | Headless animation authoring (Node.js, Blender) |
| Implementation Plan | Deterministic simulation and input buffering strategy |
Auto-deploys to Vercel via GitHub Actions (.github/workflows/vercel-deploy.yml).
- Push to
main→ production deploy - Pull request → preview deploy
VERCEL_TOKENVERCEL_ORG_IDVERCEL_PROJECT_ID