How villanuevayanmar/tagbound works
TAGBOUND is a browser-playable rooftop chase game: the player selects a class, starts or resumes a saved run, traverses city beacon quests and boss encounters, and earns persistent progression. The C++ runtime owns simulation, combat, progression, and rendering; the browser layer supplies touch input, story/install UI, audio, and offline caching. Edges follow sampled callers or README statements; several product capabilities are documented but their detailed implementation was not sampled.
Main entry points: main.cpp Game Loop · pwa.js Touch and Story UI · game.hpp Game State · systems.cpp Combat
Components 18
Browser Experience
- Touch and Story UI
web/pwa.js - Synth Audio
web/pwa.js - Offline PWA
web/sw.js - Browser Cache
web/sw.js
Game Runtime
- Game Loop
src/main.cpp - Input Mapping
src/main.cpp - Traversal
src/systems.cpp - Pursuer AI
src/systems.cpp - Combat
src/systems.cpp - Projectile Combat
src/systems.cpp
World and Progress
- XP and Skills
src/systems.cpp - City Builder
src/game.cpp - Beacon Quests
src/game.cpp - Boss Encounters
src/game.cpp
Presentation and Persistence
- Game State
src/game.hpp - 3D Renderer and HUD
src/render.cpp - Local Progress Save
src/main.cpp
Other components
- Player
Connections 21
- Player → Touch and Story UI: uses controls
README.md - Touch and Story UI → Game Loop: calls exports
web/pwa.js - Game Loop → Input Mapping: reads input
src/main.cpp - Input Mapping → Traversal: updates movement
src/main.cpp - Game Loop → Pursuer AI: updates pursuit
src/main.cpp - Game Loop → Combat: updates combat
src/main.cpp - Combat → Projectile Combat: advances shots
src/systems.cpp - Game Loop → City Builder: builds city
src/main.cpp - Game Loop → Beacon Quests: checks progress
src/main.cpp - Beacon Quests → Boss Encounters: unlocks boss
src/game.cpp - Game Loop → XP and Skills: awards XP
- Game Loop → 3D Renderer and HUD: draws frame
src/main.cpp - Game Loop → Local Progress Save: loads and saves
src/main.cpp - Game Loop → Synth Audio: plays effects
src/main.cpp - Touch and Story UI → Synth Audio: toggles sound
web/pwa.js - Touch and Story UI → Offline PWA: registers worker
web/pwa.js - Offline PWA → Browser Cache: caches assets
web/sw.js - Traversal → Game State: updates state
src/game.hpp - Pursuer AI → Game State: updates state
src/game.hpp - Combat → Game State: updates state
src/game.hpp - 3D Renderer and HUD → Game State: renders state
src/game.hpp