How merapalajagadeeshkumar/project-1 works
DO OR DIE is a browser-based third-person battle royale: one player parachutes onto an island with 24 AI bots, scavenges equipment, fights, and tries to survive the shrinking safe zone. The browser entry and menu start a match; the game orchestrator prepares the world and match systems, then presents combat status and win/loss results. Major documented capabilities include desktop and mobile controls, weapons and loot, bot AI, safe-zone damage, audio, and settings. Source excerpts are partial, so links for unsampled runtime behavior are limited to README claims.
Main entry points: main.js Game Runtime · player.js Player Controller · constants.js Game Rules · bots.js Bot AI
Components 13
Browser Entry
- Game Shell
index.html
Match Orchestration
- Game Runtime
src/main.js - Game Rules
src/constants.js
World and Survival
- Island Map
src/map.js - Safe Zone
src/zone.js - Loot System
src/loot.js
Combat and Controls
- Bot AI
src/bots.js - Weapons and Effects
src/weapons.js - Player Controller
src/player.js - Touch Controls
src/mobile.js
Player Experience
- HUD and Results
src/ui.js - Sound Engine
src/audio.js
Other components
- Player
Connections 24
- Player → Game Shell: opens
README.md - Game Shell → Game Runtime: starts
README.md - Game Runtime → Island Map: builds
src/main.js - Game Runtime → Loot System: populates
src/main.js - Game Runtime → Weapons and Effects: initializes
src/main.js - Game Runtime → Bot AI: spawns
src/main.js - Game Runtime → Player Controller: starts parachute
src/main.js - Game Runtime → HUD and Results: updates
src/main.js - Game Runtime → HUD and Results: shows results
src/main.js - Game Runtime → Sound Engine: starts ambient
src/main.js - Loot System → Island Map: reads terrain
src/loot.js - Bot AI → Loot System: finds and removes
src/bots.js - Player Controller → Safe Zone: checks damage
src/player.js - Player Controller → HUD and Results: updates combat HUD
src/player.js - Touch Controls → Player Controller: sends controls
src/mobile.js - Game Rules → Safe Zone: sets stages
src/zone.js - Game Rules → Loot System: sets loot count
src/loot.js - Game Rules → Bot AI: sets bot count
src/constants.js - Game Rules → Weapons and Effects: sets weapon stats
src/constants.js - Player → Game Runtime: starts match
src/main.js - Bot AI → Player Controller: fights
README.md - Player Controller → Weapons and Effects: fires weapons
README.md - Game Runtime → Safe Zone: advances phases
README.md - Game Runtime → Touch Controls: enables touch controls
README.md