I'll investigate and fix all these issues systematically. Let me start by examining the current state.
Now I have a full picture. Let me completely overhaul these systems:
I'll fix all these references now:
Now let me completely rewrite the Armory with a proper layout, remove the pre-spawned sandbox enemies, and build a real narrative campaign:
Now let me build the real narrative campaign system. First I need the campaign data file:
Now let me create the campaign controller with proper story delivery, then rewrite the sandbox and remove pre-spawned enemies:
Now let me rewire GameEngine to use the campaign system, remove pre-spawned sandbox enemies, and add campaign phase tracking:
Now let me rewrite the campaign stage system to use CampaignData with proper timed waves:
Let me add the imports and fix these errors:
Now I need to hook the campaign methods into the update loop and add public methods to advance the phase:
Now let me hook the campaign update into the main update loop, and also handle the campaign debrief in the death handler:
Now let me remove the old handleEnemyDeath logic that was auto-advancing stages, and connect the campaign phase to death:
Now let me update App.tsx to use the campaign overlay, add chapter selection, and fix the reset flow:
Now let me remove the pre-spawned enemies in the sandbox setMode call properly and unlock chapters when completed:
Now let me update the AnatomyRenderer to support the new footwear and accessory types, and remove the crossColor reference from the character rendering:
Let me now update the Navbar for the new track count and fix the sandbox panel to match the new sandbox state:
Now let me check the Navbar to fix the music track count references:
Clean build! Here's what was fixed in this pass:
🗑️ Sandbox — Empty by Default
- Removed the 4 pre-spawned enemies (Grunt, Agent, Engineer, Soldat) that appeared on entry
- Sandbox now opens as a clean training ground — use the top panel to spawn what you want, when you want
➕ Cross Color Removed
- The dark charcoal
#1A1A1A facial cross is now hardcoded — non-negotiable Madness Combat identity
- Removed the color picker and all references from
PlayerCustomization, Armory, and AnatomyRenderer
- No more redundant tutorial-style descriptions in the game UI
🎨 Armory — Full Rebuild
- Tabbed interface: HEAD / BODY / FEET / ACCESS / WEAPON / PERK — no more overwhelming three-column wall
- Proper 340×360 preview with radial spotlight, floor grid, and character shadow
- Grid-based swatch selection — 2–3 items per row, clean uniform boxes
- New categories added:
- Footwear: Combat Boots, Tall Boots, Sneakers, Dress Shoes, Barefoot (each renders distinctly)
- Accessories: Red/Black Scarf, Shoulder Pad w/ spike, Gold Chain w/ pendant, Ammo Belt w/ bullets
- Skin tint and shoe color pickers moved to the left preview panel for direct visual feedback
📖 Campaign — Real Narrative Mode
No more "arena mode with a stage number." The campaign is now a proper story-driven experience:
Structure:
- Chapter Select Screen — 8 chapters with progression lock (localStorage)
- Briefing Overlay — cinematic pre-mission story with typewriter reveal, objective card, click to skip/deploy
- Timed Wave Combat — waves spawn on a time schedule, not all-at-once. You breathe between fights.
- Boss Encounters — dedicated boss waves with floating dialogue
- Debriefing Overlay — post-mission story that advances the plot
- Auto Chapter Unlock — beating a chapter unlocks the next
Story Arc (each chapter has its own briefing + debriefing):
- I — The Awakening: Wake up in a bunker with no memory
- II — Perimeter Breach: Fight through Agency patrols on the streets
- III — The Facility: Discover you might be "Subject 04"
- IV — Rooftop Reckoning: The Sheriff is watching
- V — The Sheriff's Dance: Boss duel + revelation
- VI — Improbability Drive: Reality thins in the reactor
- VII — The Auditor's Anchor: A new voice enters
- VIII — Rewired: Two Mag Agents in the void, ending hooks a sequel
🎵 Music System Fix
- Track count updated from 4 → 7 (Cheshyre Overdrive, Agency Drop, Nevada Wasteland, Tricky Clown Bass, Auditor Dark Ambient, Sheriff Western Grit, Mute)
- Each campaign chapter picks its own contextual track
Files built: src/types/game.ts, src/engine/render/AnatomyRenderer.ts, src/App.tsx, src/engine/characters/Agent.ts, src/components/Armory.tsx, src/engine/campaign/CampaignData.ts, src/components/CampaignOverlay.tsx, src/engine/GameEngine.ts, src/components/ChapterSelect.tsx