How lilwad-0730/bro_we_are_cooked works
This is a browser-based, two-team cooking competition with gathering, kitchen production, order delivery, and combat over ingredients and cooking stations. The player acts through keyboard or touch controls; the main loop advances player control, NPC planning, world simulation, and (during the tutorial) tutorial progression. Separate rule responsibilities cover cooking and scoring versus combat and station sabotage. The excerpts show only selected calls, so the graph omits unverified wiring among rendering, art, configuration, and other modules rather than inferring it.
Main entry points: main.js Game Loop · rules.js Cooking and Orders · ai.js NPC Planner · config.js Game Configuration
Components 12
Play and Simulation
- Player Controls
js/main.js - Game Loop
js/main.js - NPC Planner
js/ai.js - World Simulation
js/rules.js
Game Rules
- Cooking and Orders
js/rules.js - Combat and Sabotage
js/rules.js - Game Configuration
js/config.js
World and Presentation
- Map and Visibility
js/world.js - Game Renderer
js/render.js - Vector Game Art
js/art.js
Tutorial
- Tutorial Progression
js/tutorial.js
Other components
- Player
Connections 10
- Player → Player Controls: controls
js/main.js - Player Controls → Cooking and Orders: starts actions
js/main.js - Game Loop → Player Controls: updates
js/main.js - Game Loop → NPC Planner: updates
js/main.js - Game Loop → World Simulation: updates
js/main.js - Game Loop → Tutorial Progression: updates
js/main.js - NPC Planner → Cooking and Orders: starts actions
js/ai.js - Cooking and Orders → World Simulation: advances simulation
js/rules.js - Player Controls → Game Configuration: reads settings
js/main.js - Cooking and Orders → Game Configuration: reads settings
js/rules.js