Log inGet started
World

Lantern Depths: Find the Shade Dash, Slay the Thorn Knight

Branchmain
Branchesmain
Commitda5ac13948

README.md

artgen

Paints every sideScrollerKit sprite sheet (gates, ability signs, shrine, ability icons, save points) in all six looks with pixelPaint, and saves each as a nearest-filtered texture plus a pixelSprites.sprite material under art/<look>/. Run it by hand when the art changes; the game only reads the saved assets through sideScrollerKit.art.

local G = require("sideScrollerKit.artgen")
G.generate()                              -- every look, every sprite (~15 s)
G.generate({ "scifi" }, { "gate.door" })  -- just some
G.writeLookup()                           -- refresh art.module's literal material table
local canvas = G.sheet("shrine", "cartoon")  -- paint one sheet without saving

Each sprite has one painter that draws a frame from a style table. A style says the palette (material ramps such as stone, metal, trim, glow, crystal, fire, and one ramp per ability) and the drawing rules: art pixels per tile, outline width, shading model (dithered, hard-quantised, cartoon highlight band or flat), surface textures (rough rock, mossy carved blocks, planks, brushed panels), glow treatment (dithered halo, neon scanlines, twinkles, thin ring) and corner rounding. A new look is mostly a new entry in M.STYLES, plus a branch in the painters where the shape itself should change (for example scifi swaps portcullis bars for a force field).

Sheets have one row per animation, frames left to right; the rows come from sideScrollerKit.art's SPECS.