How tomtommao/wartale-2d-web works
Ironbound Chronicles is a browser-based tactical mercenary RPG. The main loop runs from a player using the interface to travel and explore, through encounters and tactical battles, then applies rewards and progression to the company before saving state in browser storage. Supporting branches cover professions, camp upkeep, crafting, knowledge, and equipment upgrades. The graph follows visible imports and calls; README-described capabilities are included where implementation detail was not sampled, without asserting unshown links.
Main entry points: main.ts UI Orchestration · game.ts Phaser Game · locations.ts Locations and Rewards · systems.ts Company Systems
Components 19
Player Interface
- UI Orchestration
src/main.ts - UI Helpers
src/ui.ts
World Exploration
- Terrain and Paths
src/worldMap.ts - Locations and Rewards
src/locations.ts - World Art
src/worldArt.ts
Tactical Combat
- Battle Grid
src/battleGrid.ts - Battle Skills
src/battleSkills.ts - Animated Actors
src/animatedSprites.ts
Company Progression
- Company Systems
src/systems.ts - Resource Costs
src/resources.ts - Forge and Upgrades
src/forging.ts
Game Runtime
- Phaser Game
src/game.ts - Game State
src/store.ts - Gameplay Rules
src/domain.ts - Game Content
src/data.ts - Domain Types
src/types.ts - Pixel Art
src/pixelArt.ts - Scene and Item Art
src/gameArt.ts
Other components
- Player
Connections 29
- Player → UI Orchestration: uses
README.md - UI Orchestration → Phaser Game: starts
src/main.ts - UI Orchestration → Game State: loads and saves
src/main.ts - UI Orchestration → UI Helpers: renders with
src/main.ts - Phaser Game → Game State: reads and saves
src/game.ts - Phaser Game → Gameplay Rules: applies rules
src/game.ts - Gameplay Rules → Game Content: uses content
src/domain.ts - Game State → Gameplay Rules: serializes through
src/store.ts - Phaser Game → Locations and Rewards: enters and clears
src/game.ts - Phaser Game → Terrain and Paths: uses paths
src/game.ts - Terrain and Paths → Battle Grid: uses grid helpers
src/worldMap.ts - Locations and Rewards → Terrain and Paths: maps sites
src/locations.ts - Locations and Rewards → Company Systems: awards progression
src/locations.ts - Phaser Game → Company Systems: awards travel XP
src/game.ts - Phaser Game → Battle Grid: resolves movement
src/game.ts - Phaser Game → Battle Skills: uses combat skills
src/game.ts - Phaser Game → Animated Actors: animates actors
src/game.ts - World Art → Terrain and Paths: draws terrain
src/worldArt.ts - Phaser Game → Pixel Art: renders scenes
src/game.ts - UI Orchestration → Scene and Item Art: renders art
src/main.ts - Company Systems → Resource Costs: checks and spends
src/systems.ts - Forge and Upgrades → Locations and Rewards: checks proximity
src/forging.ts - Forge and Upgrades → Company Systems: uses professions
src/forging.ts - Forge and Upgrades → Resource Costs: checks and spends
src/forging.ts - UI Orchestration → Company Systems: manages camp
src/main.ts - UI Orchestration → Forge and Upgrades: opens workshop
README.md - UI Orchestration → Locations and Rewards: offers exploration
README.md - UI Orchestration → World Art: shows overworld
README.md - UI Orchestration → Domain Types: uses domain types
src/main.ts