Lantern Depths: Find the Shade Dash, Slay the Thorn Knight
README.md
art
The sideScrollerKit's sprite art in six looks (pixel, fantasy, scifi, cartoon, minimal, gothic) and the matching UI palette per look. Gates, shrines, save points and the HUD call it to put the right sheet on an entity.
local Art = require("sideScrollerKit.art")
Art.attach(gate, "gate.crystal", "fantasy") -- adds/updates a pixelSprites.SpriteSheet, plays "idle"
Art.attach(gate, "gate.crystal", "fantasy", "break") -- switch animation
local d = Art.sheet("save.bench", "scifi") -- the SpriteSheet data, sizes in tiles
local pal = Art.palette("scifi") -- { bg, panel, ink, accent, accent2, good, bad, text } hex strings
Art.LOOKS,Art.SPRITES,Art.SPECS[name](w,hin tiles and the animation rows).Art.sheet(name, look)returnssheet(material identity),frameWidth,frameHeight,columns,rows,animations,pixelsPerUnit(16 for pixel, 32 for the others),widthTiles,heightTiles. Unknown looks fall back topixel.Art.attach(entity, name, look, anim?): the entity position is the sprite's bottom-centre (feet).- The sheets are only ever resolved through a generated table of string-literal
asset.resolvecalls, so components that require this module stay publishable. animon a SpriteSheet is a synced field and is not kept by a scene bake: callArt.attach(or setanim) at runtime, e.g. in a component'sawake, not only inbuild.luau.
The art is painted by sideScrollerKit.artgen; regenerate with require("sideScrollerKit.artgen").generate() then .writeLookup().