Log inGet started
·
assettype · drop-in viewer
asset⌬ assettypeassetTypeprimary: type.yaml·originates fromworld 47b50fcd-5…

gbrom.assetType

A Game Boy cartridge project as one asset. Everything a cartridge is — its title, its build inputs, and the ROM it produces — lives in one folder, so a new game is a new instance of this type.

by◐Deata·posted 3d ago
What it does

gbrom (asset type)

A Game Boy cartridge project as one asset. Everything a cartridge is — its title, its build inputs, and the ROM it produces — lives in one folder, so a new game is a new instance of this type.

Instance shape

<name>.gbrom/
  game.luau     the project — required
  README.md     what the game is — required
  game.gb       the built cartridge — written by :build()

game.luau returns a project table:

return {
    title = "MY GAME",   -- cartridge title (up to 15 characters, uppercased)
    cgb = false,         -- true / "only" for a Color cartridge, false for DMG

    -- one of these two:

    source = [[          -- SM83 assembly, assembled by gbdev.gbasm
        .org $0150
    start:
        di
        ld sp,$fffe
        halt
    ]],
}

or, when the project is generated by code — art built as tiles, maps emitted from tables, a whole toolchain — build instead:

return {
    title = "MOTH LIGHT",
    cgb = false,
    build = function()
        return require("gbdev.mothlight").build()   -- returns ROM bytes
    end,
}

Methods on every instance

MethodDoes
:project(reload?)loads and caches the project table from game.luau
:build()assembles the project and writes game.gb beside it; returns the ROM
:romPath()builds if game.gb is missing, then answers that path

Using one

Point a GameBoy component's romPath at the built cartridge:

local cart = asset.resolve("mothlight", "gbrom")
cart:build()
screen.component.get("GameBoy").romPath = cart:romPath()

Or hand the path straight to the gameboy package's loader UI, which lists every cartridge under gb_roms/ — copy the built game.gb there under any name.

Notes

  • Builds are deterministic: the same game.luau produces the same bytes, so a rebuild is safe to run every time the project is edited.
  • The assembler, cartridge header, checksums and mapper byte live in gbdev.gbasm; this type only decides where the project is and where the ROM lands.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/asset-type/v1
⌬ Spec
suffix.gbromcontainernoprimary aliasesgame.luaurequired filesgame.luau, README.mdoptional filesgame.gb, .metadata

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.