Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 47b50fcd-5…

consoleShowcase

The cartridge shelf's console stage (`stations.cartlib` opens it). Every console the shelf offers stands on a lit stage of its own, far below the room on the private `consoleshowcase` render layer: a dark glossy floor that mirrors what stands on it (a mirrored copy under a transl…

by◐Deata·posted 2d ago
What it does

consoleShowcase

The cartridge shelf's console stage (stations.cartlib opens it). Every console the shelf offers stands on a lit stage of its own, far below the room on the private consoleshowcase render layer: a dark glossy floor that mirrors what stands on it (a mirrored copy under a translucent floor), a soft key spot with shadows, a cool rim and a warm fill. One isolated camera draws the whole carousel (the focused console large in the middle, neighbours smaller and further back) into a texture the shelf shows in a viewport widget.

Models come from stations.consoleRegistry (one entry per console id: builder, true size, framing). A console without a model yet stands there as a clean silhouette of its true proportions with a thin amber seam.

local Show = require("stations.consoleShowcase")
local guid = Show.open({ "nes", "megadrive", "snes" }, 1, 900, 420)  -- ids, focus index, logical size
Show.setFocus(2)                 -- carousel eases there (critically damped spring)
Show.turn(dx, dy, vx?, vy?)      -- drag the focused console (radians); vx/vy = speed it carries on with
Show.release(vx, vy)             -- let go: inertia, then it eases back into the slow idle turn after ~3 s
Show.zoomBy(d)                   -- 1 .. 1.6x, springs back with the idle turn
Show.setRate(fps)                -- 60 on the stage, less behind the cartridge list
Show.resize(w, h) -> guid        -- the texture may change on resize
Show.close()

Cost: the stage exists only while the shelf is open; the camera is disabled and drawn by hand (Camera:render) at the set rate into a texture capped at 1280 x 720 (pixel ratio capped at 1.5). Consoles further than 2.6 slots from the focus are parked out of view and not built until they come near.

Test hooks: state(), isPlaceholder(i), focus(), texture().

Interface

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

conforms to

zero/source-extract/v2

strict

LightCamera

qaxis(x: number, y: number, z: number, a: number) → void

argtypedescription
xnumber
ynumber
znumber
anumber

qmul(a: { number }, b: { number }) → void

argtypedescription
a{ number }
b{ number }

setLayer(e: any) → void

argtypedescription
eany

qgRun(fn: () → void

quick-geometry models (the Game Boy, the silhouettes, the floor) compile in a run of their own at runtime; their generators spawn what draws them a frame or more later, so the stage's layer is laid over them again then

argtypedescription
fn(

buildStage(st: State) → void

argtypedescription
stState

placeholder(name: string, parent: any, e: Reg.Entry) → any

the silhouette of a console still being modelled: a softened block of its true proportions, scaled like the real thing would be, with a thin amber seam

argtypedescription
namestring
parentany
eReg.Entry

fitOf(e: Reg.Entry?) → number

argtypedescription
eReg.Entry?

placeConsole(name: string, parent: any, e: Reg.Entry?, mirror: boolean) → void

one console (or its mirror image) as the stage holds it: the root stands its base on the floor, leaning back a handheld

argtypedescription
namestring
parentany
eReg.Entry?
mirrorboolean

ensureSlot(st: State, i: number) → void

argtypedescription
stState
inumber

slotPose(k: number) → void

where a console stands for its distance from the focus (k, in slots)

argtypedescription
knumber

makeTarget(st: State, w: number, h: number) → void

argtypedescription
stState
wnumber
hnumber

step(st: State, dt: number) → void

argtypedescription
stState
dtnumber

open(ids: { string }, focus: number, w: number, h: number) → string

Open the stage for these console ids, focused on `focus` (an index), at a texture of `w` x `h` logical points. Returns the texture's guid.

argtypedescription
ids{ string }
focusnumber
wnumber
hnumber

close( ) → void

isOpen( ) → boolean

texture( ) → string

The texture the stage draws into (its guid), or nil.

resize(w: number, h: number) → string

Resize the texture to `w` x `h` logical points; returns the guid (it may change).

argtypedescription
wnumber
hnumber

setFocus(i: number) → void

Move the focus to console index `i` (the carousel eases there).

argtypedescription
inumber

focus( ) → number

turn(dx: number, dy: number, vx: number?, vy: number?) → void

Turn the focused console by a drag: `dx`, `dy` in radians this frame; `vx`, `vy` (radians a second) is the speed it carries on with.

argtypedescription
dxnumber
dynumber
vxnumber?
vynumber?

release(vx: number, vy: number) → void

Let go after a drag: the turn carries on at `vx`/`vy` and slows.

argtypedescription
vxnumber
vynumber

zoomBy(d: number) → void

Zoom by a factor step (positive nearer); 1 .. 1.6.

argtypedescription
dnumber

setRate(fps: number) → void

Frames a second the stage draws at (60 while it is the screen, 0 to stop drawing).

argtypedescription
fpsnumber

isPlaceholder(i: number) → boolean

Whether console `i` stands as a placeholder silhouette (no model yet).

argtypedescription
inumber

state( ) → any

Debug / test read.

Problems

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

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬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.