How dvianz/mauagame works
This is a small browser-based factory crisis game. Players configure a session, resolve timed rounds under event-specific rules, record each round as a success or failure, and view a debrief with a generated network graphic. The excerpt shows a manually selected scan outcome, not an external scanner. Source excerpts are partial, so the graph includes only the wiring they establish.
Main entry points: app.js Round control · index.html Game interface · styles.css Visual styles
Components 11
Session flow
- Session setup
index.html - Session state
app.js - Debrief graph
app.js
Round gameplay
- Round control
app.js - Crisis events
app.js - Round timer
app.js - Scan outcome
app.js - Round result
app.js
Browser interface
- Game interface
index.html - Visual styles
styles.css
Other components
- Players
Connections 18
- Players → Session setup: configure
- Session setup → Session state: set options
- Players → Game interface: play
- Game interface → Round control: start round
- Round control → Session state: update state
- Round control → Crisis events: select event
- Round control → Round timer: reset timer
- Players → Round timer: control timer
- Players → Scan outcome: choose outcome
- Scan outcome → Round result: show result
- Scan outcome → Session state: count success
- Players → Round result: next round
- Round result → Round control: start next
- Round result → Debrief graph: finish session
- Debrief graph → Session state: read totals
- Debrief graph → Game interface: draw graph
- Game interface → Visual styles: styled by
- Players → Debrief graph: restart