gameboyModel.module
README.md
gameboyModel
The original grey Game Boy (DMG-01) at true size, for a scene's build.luau. Every part is modelled from the real handheld's
millimetre measurements (90 x 148 x 32 mm): a bevelled shell with the large bottom-right corner, the
dark screen surround with its stripes and power lamp, a one-piece cross d-pad in its well, domed A/B on
the slanted recess, rubber start/select pills, six speaker slots, contrast and volume wheels, power
switch, link port, headphone jack and a cartridge in the slot.
local GameBoyDMG = require("stations.gameboyModel").GameBoyDMG
local gb = GameBoyDMG("gameboy", { synced = true, build = build }) -- returns the root entity (origin: the console's centre)
gb.localPosition = { 0, 0.5, 0 }
The root's children:
gb_shell: everything that does not move;btn_dpad,btn_a,btn_b,btn_start,btn_select: the controls, each a model of its own at the console's origin soGbButtonscan press it;gb_screen: the LCD, a 47 x 42.3 mm quad facing +Z that drawsgb_screen_mat(whose texture aRetroStationwrites the game into);- printed labels as
Text3D.
The console faces +Z; its screen centre is at (0.7, 32.8, 17.35) mm from its centre.
GameBoyDMG.DPAD_PIVOT is the d-pad's centre on the face, for GbButtons.dpadPivot.
GameBoyDMG.HALF is its half size in metres, for a collider.