Commit Graph

11 Commits

Author SHA1 Message Date
Brian Fertig 5b206fda33 feat: implement BattleResultScene with full post-battle flow
- Add new BattleResultScene to handle post-battle victory/defeat sequence
- Include animated terminal-style debrief with stats, rating, and card/commander unlocks
- Support dynamic commander videos (victory/defeated) with fallback placeholders
- Implement gold counter animation and card reveal system with rarity effects
- Add victory/defeat music assets and integrate into result flow

BattleScene changes:
- Track all battle events across turns for detailed post-battle stats
- Transition to BattleResultScene instead of showing inline results
- Preserve save logic (gold, cards, unlocks) in result scene transition

BootScene changes:
- Load victory/defeat music assets for result scene playback
2026-03-31 17:54:00 -06:00
Brian Fertig 22b4b51883 feat: fix delay activation for freshly deployed AI cards and optimize pre-battle strike handling
- Skip delay tick for AI cards just deployed in opponent-first turns to prevent unfair free activation
- Group consecutive "strike all" pre-battle fires to execute them in parallel, matching player card behavior
2026-03-31 13:37:04 -06:00
Brian Fertig e8c6ff6c96 feat: update mission 030-037 content and balance adjustments
- Add new mission briefing videos (mission_030 through mission_037)
- Balance card stats: reduce fortify values, increase strike damage and armor values across multiple cards
- Adjust heal values for support units
- Significantly reduce gold rewards for missions 030–036 (from ~2800–3400 to 800), with mission 037 reward set to 1600
- Extend video preload loop in CampaignScene.js to include new mission videos
2026-03-31 11:49:08 -06:00
Brian Fertig fe229d7462 feat: implement compound molt armor mechanics and update balance
- Add permanent +1 baseArmor bonus on each molt to enable compound armor growth across multiple molts
- Track molt activation with _moltZeroed flag to ensure armor restoration only occurs after a molt event
- Extend protect/fortify skills to also boost baseArmor when applied after a molt (to preserve interim boosts)
- Update card venom values for progressive difficulty curve
- Adjust mission rewards and replace bt_hemomancer_1 with bt_hemorrhage_1 in reward pool
- Add 23 new mission briefing videos (mission_001 through mission_023)

This refines the molt mechanic to support long-term armor progression while maintaining balance across campaigns.
2026-03-27 20:30:56 -06:00
Brian Fertig ab4225bd42 Add mission briefing videos for all 5 missions
- Add binary assets: `assets/video/mission_001.mp4` through `mission_005.mp4`
- Update `CampaignScene.preload()` to dynamically load all mission videos
- Modify briefing display logic to show the loaded video when available, hiding offline/file placeholders
2026-03-26 23:34:45 -06:00
Brian Fertig 3da9d5c527 feat: overhaul campaign UI with CRT terminal aesthetic and balance skills
- **UI Overhaul**: Replaced static backgrounds with animated video loops and scanline overlays in `CampaignScene` and `CampaignSelectScene`.
- **Terminal Interface**: Implemented a "Tactical Operations Terminal" in the campaign mission view featuring amber CRT styling, typing text effects, vignettes, and flicker animations.
- **Mission Briefing**: Added interactive mission selection that renders detailed briefings, lore, and reward manifests within the terminal interface.
- **Balance Changes**: Doubled the values for `siege`, `mortar`, `venom`, and `smite` skills in `data/cards.json` across all tiers.
- **Tutorial Updates**: Adjusted tutorial overlays and positioning to match the new layout and UI elements.
2026-03-26 21:31:51 -06:00
Brian Fertig 5a67484240 feat: implement comprehensive battle and campaign tutorial system
Adds a multi-stage tutorial system to guide new players through the core game mechanics:

- **Save System**: Bumps save version to 3 and adds `tutorialProgress` tracking with migration logic for existing saves.
- **MainMenuScene**: Introduces Stage 1 (Campaign Intro) overlay directing users to start the campaign.
- **CampaignSelectScene**: Adds Stage 2 overlay highlighting the "Raider Uprising" campaign selection.
- **CampaignScene**: Adds Stage 3 overlay explaining mission selection within a campaign.
- **BattleScene**: Implements Stages 4 & 5:
  - **Battle Intro**: Step-by-step walkthrough of Commander cards, explaining ATK, ARM, HP, DLY, and Skills.
  - **Battlefield Guide**: Visual explanation of the 4-lane system, card combat mechanics, unblocked attacks, and the "Next Turn" flow.

All tutorial overlays include interactive "Continue" or direct-action buttons, animated indicators, and depth management to prevent interaction with the underlying game state until the tutorial step is complete.
2026-03-25 22:06:04 -06:00
Brian Fertig 4eb4d7f278 Add IntroScene with video playback and skip functionality
- Introduce `IntroScene` to play `assets/video/intro.mp4` before the main menu
- Implement dynamic video scaling to fit screen dimensions
- Add skip prompt (Space/Click) that appears after first interaction
- Move main menu music initialization to `MainMenuScene` for proper lifecycle management
- Update scene flow: `BootScene` → `IntroScene` → `MainMenuScene`
- Include fallback handling for video errors and metadata loading
2026-03-25 20:47:18 -06:00
Brian Fertig 217bf1148e ```
Refactor pack system to faction-specific packs with slot-based drops

- Split standard pack into 5 faction-specific packs (imperial, raider, bloodthirsty, xeno, righteous)
- Each pack has 3 guaranteed common slots + 1 special slot with tiered rarity distribution
- Packs unlock by completing their respective campaign missions
- Updated StoreScene to display faction colors, unlock status, and support pack opening animations

Fix bloodpact skill trigger timing and mechanics

- Changed bloodpact from preBattle to preAttack trigger (now fires per attack instead of once per turn)
- Reduced HP cost to 50% of value (was 100%), maintaining same ATK gain
- Moved bloodpact processing from _collectPreBattleFires to _buildPendingAttacks
- Added death check for self-killed cards during preAttack phase

Update drain skill description and trigger

- Changed drain from preBattle to preAttack trigger
- Updated description to clarify it targets the opposing card and its neighbors

Add fusion activation video and enhanced reveal effects

- Added forge2.mp4 for fusion animation (swaps with idle forge during activation)
- Implemented 3-phase energy vortex effect: particle streams, lightning bolts, convergence flash
- Faction-colored effects based on selected stack's faction

Update attack spritesheet and card data

- Updated attacks.png/psd with new bloodpact visual (frame 24)
- Changed all bloodpact skill triggers in cards.json from preBattle to preAttack
```
2026-03-15 18:28:33 -06:00
Brian Fertig eb214fce26 More changes prep 2026-03-15 12:26:28 -06:00
Brian Fertig e012cda336 feat: enhance card armor values and add retro VHS menu effects
- Updated `data/cards.json` to significantly increase armor values across all card tiers and types for better survivability balance.
- Refined skill descriptions in `data/skills.json` (Pierce, Berserk, Protect, Jam, Enfeeble) to clarify mechanics like "this turn" vs "permanent" effects and added flavor text.
- Added video background support to `MainMenuScene.js` using the new `tyrants-edge-menu.mp4` asset.
- Implemented retro VHS visual overlays on the menu: scanlines, stepped vignette, rolling tracking bar, and random screen flickers for atmospheric effect.
2026-03-15 10:32:27 -06:00