How rauljaspal/ironblood works
IRONBLOOD is a browser-based 3D fighting game. Players choose arcade or local versus, select fighters and a stage, then play rounds whose combat resolves hits, effects, and match outcomes. The browser runtime is organized around a match orchestrator, with separate fighter, combat, input, presentation, and asset responsibilities. The repository also includes an offline animation-retargeting pipeline. Runtime connections below follow the shown excerpts and source-index references; unsampled implementation details are not inferred.
Main entry points: main.js Boot and menus · game.js Fight session · fighter.js Fighter state · config.js Roster and rules
Components 19
Game Runtime
- Boot and menus
web/js/main.js - Roster and rules
web/js/config.js - Controls
web/js/input.js
Match Systems
- Fight session
web/js/game.js - Fighter state
web/js/fighter.js - Combat resolution
web/js/combat.js - CPU opponent
web/js/ai.js
Presentation
- Stage builder
web/js/stage.js - 3D asset loading
web/js/assets.js - Costume setup
web/js/costumes.js - Visual effects
web/js/fx.js - Sound and music
web/js/audio.js - Game UI
web/js/ui.js
Animation Pipeline
- Animation baking
tools/build-anims.js - Rig retargeting
tools/lib/retarget.js - Move authoring
tools/lib/moves.js - Rig mappings
tools/lib/rigmaps.js - Skeleton sampling
tools/lib/skeleton.js
Other components
- Player
Connections 27
- Player → Boot and menus: starts game
README.md - Boot and menus → Roster and rules: reads roster
web/js/main.js - Boot and menus → Stage builder: builds stage
web/js/main.js - Boot and menus → Fight session: starts match
web/js/main.js - Boot and menus → Controls: uses controls
web/js/main.js - Boot and menus → Game UI: uses interface
web/js/main.js - Boot and menus → Visual effects: creates effects
web/js/main.js - Boot and menus → Sound and music: uses audio
web/js/main.js - Boot and menus → 3D asset loading: loads assets
web/js/main.js - Stage builder → 3D asset loading: loads textures
web/js/stage.js - 3D asset loading → Costume setup: applies costumes
web/js/assets.js - Fight session → Fighter state: updates fighters
web/js/game.js - Fight session → Combat resolution: resolves combat
web/js/game.js - Fight session → CPU opponent: runs CPU
web/js/game.js - Fight session → Roster and rules: reads rules
web/js/game.js - Fighter state → 3D asset loading: loads models
web/js/fighter.js - Fighter state → Roster and rules: reads moves
web/js/fighter.js - Combat resolution → Fighter state: checks states
web/js/combat.js - Combat resolution → Roster and rules: reads frame data
web/js/combat.js - CPU opponent → Fighter state: chooses actions
web/js/ai.js - CPU opponent → Roster and rules: reads rules
web/js/ai.js - Animation baking → Skeleton sampling: extracts clips
tools/build-anims.js - Animation baking → Rig retargeting: retargets clips
tools/build-anims.js - Animation baking → Rig mappings: uses rig maps
tools/build-anims.js - Animation baking → Move authoring: builds moves
tools/build-anims.js - Rig retargeting → Skeleton sampling: computes transforms
tools/lib/retarget.js - Move authoring → Skeleton sampling: computes poses
tools/lib/moves.js