gameboy.scene
- .build.assets1.9 KB
- .build.state16 B
- .metadata17 B
- README.md1.7 KB
- authoring
- build.luau20.2 KB
- courtyard_glass_bedroom_double.mesh
- courtyard_glass_bedroom_single.mesh
- courtyard_glass_dining.mesh
- courtyard_glass_empty_room.mesh
- courtyard_glass_home_office.mesh
- courtyard_glass_kitchen.mesh
- courtyard_glass_kitchen_galley.mesh
- courtyard_glass_living_reading.mesh
- courtyard_glass_living_tv.mesh
- courtyard_glass_stairwell.mesh
- courtyard_window_frames.mesh
- courtyard_window_sills.mesh
- crt_feed_glass.mesh
- entrypoint.luau6.7 KB
- gb_bezel_plastic.material
- gb_body_plastic.material
- gb_button_plastic.material
- gb_dark_plastic.material
- gb_desk_wood.material
- gb_lamp_brass.material
- gb_lamp_glow.material
- gb_lcd.mesh
- gb_power_led.material
- gb_trim_metal.material
- gb_wall_paint.material
- init.json140 B
- night_courtyard_facades.mesh
- night_courtyard_ground.mesh
- night_courtyard_lamps.mesh
- night_courtyard_roofs.mesh
- night_courtyard_sky.mesh
- scene.json486 KB
This package holds more than this page lists. See all of its files in its world.
README.md
gameboy
A Game Boy to play on: a Game Boy Color standing on a desk in a dim room, its LCD driven by a real emulator core.
The whole thing is authored in build.luau — the shell, the bezel, the LCD
quad, the buttons, the desk, the lamp and the camera — so the screen sits
exactly where the real bezel puts it and the layout is one file to change.
Playing
Press play in this scene. The cartridge in the loader window boots at 60 fps and the keyboard is wired to the handheld:
| Game Boy | Keyboard |
|---|---|
| D-pad | arrows or WASD |
| A | Z or J |
| B | X or K |
| Start | Enter |
| Select | right Shift or Backspace |
The GAME BOY panel in the top-left is the cartridge loader:
- any
.gb/.gbcunder/zero/source/gb_roms/is listed — click one to boot it, - Upload from your computer opens a file picker and copies the cartridge into the player's own library (so it survives restarts, and is not committed to the world),
- Fetch & Play pulls a cart from a URL the same way.
Battery saves (cart RAM) are kept per cartridge title in the world's runtime data, so a game that saves on the real hardware saves here too.
ucity.gbc ships as the demo cartridge — µCity, a homebrew Game Boy Color city
builder by AntonioND.
How it is wired
gb_screen carries the GameBoy component from gameboy.package, which runs
the emulator and blits its 160x144 framebuffer into the texture that
gb_screen_mat (unlit, so the LCD glows regardless of room light) samples.
The LCD is a quad built here as gb_lcd.mesh rather than the builtin plane:
that one lies flat in XZ with its face up, and the emulator's image needs to land
upright and unmirrored on a surface facing the room.