How chlik/gameboy-online works
GameBoy Online is a browser-based Game Boy Color emulator. The main workflow is loading a ROM into the browser interface, creating and starting the emulation core, and presenting its output through the emulator UI. The README documents canvas graphics and JavaScript audio; the tree also shows interface, save-management, and audio-support modules. The sampled excerpts establish the PHP page/framework relationship and the I/O-to-core startup and persistence behavior; unsampled audio and UI wiring is shown only as unverified where relevant.
Main entry points: index.php Emulator page · GameBoyIO.js Emulator I/O · GameBoyCore.js Console emulation · XAudioServer.js Audio output
Components 16
Web application
- Emulator page
index.php - Page framework
res/framework.php
Emulation
- Emulator I/O
js/GameBoyIO.js - Console emulation
js/GameBoyCore.js - Save and state handling
js/GameBoyIO.js - Browser storage
User interface
- Input controls
js/GameBoyIO.js - Window and menu UI
js/other/gui.js - Window stacking
js/other/windowStack.js - Emulator messages
js/other/terminal.js
Media support
- Audio output
js/other/XAudioServer.js - Audio resampling
js/other/resampler.js - Audio stream worker
js/other/XAudioServerMediaStreamWorker.js - Image resizing
js/other/resize.js
Other components
- Player
- Game ROM
Connections 17
- Player → Emulator page: opens
- Emulator page → Page framework: extends
index.php - Emulator page → Emulator I/O: loads script
index.php - Player → Game ROM: provides
- Emulator I/O → Console emulation: starts
js/GameBoyIO.js - Game ROM → Emulator I/O: loads
- Player → Input controls: operates
- Input controls → Console emulation: sends input
js/GameBoyIO.js - Emulator I/O → Save and state handling: manages
js/GameBoyIO.js - Save and state handling → Browser storage: reads and writes
js/GameBoyIO.js - Emulator page → Window and menu UI: renders UI for
- Window and menu UI → Window stacking: uses
- Emulator page → Emulator messages: renders terminal for
- Console emulation → Audio output: produces audio for
- Audio output → Audio resampling: resamples with
- Audio output → Audio stream worker: streams through
- Console emulation → Image resizing: may resize output with