paint.module
README.md
paint
This game's configuration of paintKit: the tools that paint walls, the paint
ARMS that fire the same tins, the eight pigments and what each does in a fight, cover for everything that can
be painted out, Wren's own colour, the mural sizes and the designs that go on the walls.
local PaintContent = require("metropolisGame.content.paint")
PaintContent.config -- overrides for paintKit.modules.config
PaintContent.pigments -- { { id, hex, safe, pattern } } in shop order (safe: colour-blind safe hex)
PaintContent.pigment("ochre") -- one of them
PaintContent.arms -- { id, ... } arm ids in wheel order
PaintContent.sizes.piece -- { scale, cols, rows, renown, colour, width, height } (width/height in metres)
PaintContent.designs.piece -- { { id, rows }, ... } authored pictures for that size
PaintContent.design("piece", 2) -- a paintKit design built from the nth picture (wraps round)
PaintContent.designById("piece", "fish")
Numbers follow s3/design/game_direction.md §1 (arms) and GAME_DESIGN.md §4.1 (tools); every one is here, none
in code. Designs are text: one character per block of `scale` x `scale` cells; a cell is 0.25 m. Letters:
o ochre v viridian m vermilion c ultramarine k white b lampblack s saffron h heather . bare wall
The interface is documented in the header of init.luau; this file repeats it for the asset browser.