layout
Where everything in the Market Square gallery stands. The positions are worked out from the spawn camera, so the gallery reads as a neat grid on screen: two rows of three stalls (the back row on a 3.5 m terrace), two rows of four currency pedestals, a line of coins and the two pa…
gallery.layout
Where everything in the Market Square gallery stands. The positions are worked out from the spawn camera, so the gallery reads as a neat grid on screen: two rows of three stalls (the back row on a 3.5 m terrace), two rows of four currency pedestals, a line of coins and the two pads. Each row's spacing follows its distance from the camera, so columns line up and every sign gets the same share of the screen.
Used by the scene build (scenes/main.scene/build.luau), which places the models, and by gallery.marketGallery, which places the signs, coins and pad triggers at run time.
M.stalls(),M.pedestals(),M.pads(),M.coins(): positions plus the distance from the camera and the widest each sign may be.M.span(fraction, d): world width covering that share of the screen at distanced.M.textHeight(px, d): world height of textpxpixels tall on a 720p screen at distanced.M.RIG,M.PITCH,M.CAMERA,M.SPAWN: the player camera the layout is made for.
Scoped to this part · feeds back into the world's score.