How jhohanguadalupe/trashman works
TrashMan is a browser-based 3D cleanup adventure game, with solo story/adventure play and shared online rooms. The player enters through the browser game, plays in a rendered world, and progresses through cleanup or Titan combat; inventory, companions, and shops support that loop. The graph highlights these domain stages and the game engine that renders and updates them. The README is empty, and source excerpts are partial, so links are limited to relationships visible in excerpts; unsampled capabilities are represented without guessed wiring.
Main entry points: uiController.js Game interface · onlineRoom.js Online room client · main.js Game orchestrator · adventureMode.js Titan adventure
Components 27
Game modes
- Story mode
TrashMan-main/js/modes/storyMode.js - Titan adventure
TrashMan-main/js/modes/adventureMode.js - Titan story
TrashMan-main/js/modes/titanStory.js
Game engine
- Game orchestrator
TrashMan-main/js/main.js - Graphics pipeline
TrashMan-main/js/engine/graphics.js - Camera control
TrashMan-main/js/engine/camera.js - Character builder
TrashMan-main/js/engine/character.js - Emote animation
TrashMan-main/js/engine/emotes.js - Gamepad input
TrashMan-main/js/engine/gamepad.js - Character animation
TrashMan-main/js/engine/humans.js - Texture system
TrashMan-main/js/engine/textures.js - Asset loader
TrashMan-main/js/engine/assetLoader.js
World simulation
- Map definitions
TrashMan-main/js/data/mapsData.js - Map builder
TrashMan-main/js/world/maps.js - Monsters
TrashMan-main/js/world/monsters.js - Boss encounter
TrashMan-main/js/world/boss.js - Trash collection
TrashMan-main/js/world/trash.js - Living ecosystem
TrashMan-main/js/world/worldLife.js
Player progression
- Game interface
TrashMan-main/js/ui/uiController.js - Recycling shop
TrashMan-main/js/ui/recyclingShop.js - Item catalog
TrashMan-main/js/data/items.js - Player state
TrashMan-main/js/data/state.js
Online rooms
- Online room client
TrashMan-main/js/modes/onlineRoom.js - Remote players
TrashMan-main/js/modes/multiplayerMode.js - Room server
TrashMan-main/server/room-server.js - Room worker
TrashMan-main/worker.js
Other components
- Player
Connections 19
- Player → Game orchestrator: plays
- Game orchestrator → Graphics pipeline: creates composer
TrashMan-main/js/main.js - Game orchestrator → Online room client: updates
TrashMan-main/js/main.js - Game orchestrator → Gamepad input: reads input
TrashMan-main/js/main.js - Map builder → Map definitions: reads definitions
TrashMan-main/js/world/maps.js - Map builder → Texture system: gets textures
TrashMan-main/js/world/maps.js - Titan adventure → Monsters: attacks
TrashMan-main/js/modes/adventureMode.js - Titan adventure → Player state: awards progress
TrashMan-main/js/modes/adventureMode.js - Titan adventure → Game interface: shows feedback
TrashMan-main/js/modes/adventureMode.js - Titan adventure → Boss encounter: faces
- Game interface → Character builder: rebuilds hero
TrashMan-main/js/ui/uiController.js - Game interface → Player state: reads equipment
TrashMan-main/js/ui/uiController.js - Game interface → Item catalog: renders catalog
- Game interface → Recycling shop: opens shop
- Online room client → Remote players: updates players
TrashMan-main/js/modes/onlineRoom.js - Online room client → Story mode: applies deposits
TrashMan-main/js/modes/onlineRoom.js - Online room client → Game orchestrator: requests lobby
TrashMan-main/js/modes/onlineRoom.js - Online room client → Room worker: connects by WebSocket
- Room worker → Room server: routes rooms