Log inGet started
World

Save Point

Branchmain
Branchesmain
Commit8937fc8d08

README.md

GameBoy

Hosts a Game Boy / Game Boy Color machine on this entity. Loads a .gb/.gbc cartridge ROM from the world VFS, emulates it (CPU, PPU, timers, joypad — the gb module), and blits the 160×144 framebuffer to the gb_screen_mat screen texture every frame while in play mode.

Fields:

  • romPath — VFS path of the cartridge ROM to run. Changing it live reloads.
  • running — pause/resume the machine.
  • framesPerTick — emulated frames per engine frame (1 = realtime at ~60fps).
  • status — loaded cart title and model, or the load error.

Controls: arrows/WASD = d-pad, Z/J = A, X/K = B, Enter = Start, Right Shift/Backspace = Select.