architecture.module
This package holds more than this page lists. See all of its files in its world.
README.md
game.town.architecture
HD-2D pixel-textured town architecture for Emberbrook, built from primitives and nearest-filtered pixel-art materials in art/arch/.
local Arch = require("game.town.architecture")
Arch.house(name, parent, x, z, { width, depth, storeys, style, doorX, windows, shop, awning, facing, lit, gableFront, ivy, flowers, chimney, pitch })
Arch.gateTower(name, parent, x, z, { size, height, spireHeight, facing, lit })
Arch.townWall(name, parent, x1, z1, x2, z2, { height, thickness, ivy })
Arch.fountain(name, parent, x, z, { radius })
Arch.marketStall(name, parent, x, z, { awning, wares, width, facing })
Arch.well(name, parent, x, z, { facing })
Arch.chapel(name, parent, x, z, { facing, lit })
Styles are stone_thatch, timber_thatch, timber_red, stone_slate and timber_slate. Shops are bakery, inn and general. Awning colours are red, green, blue and purple. Wares are bread, apples, pumpkins and cloth.
To rebuild the materials, run execute { file = "/zero/source/art/arch/make_materials.luau" }. To re-cut a generated cutout, run execute { file = "/zero/source/art/arch/cut.luau", args = { sheet, names, cols, scale } }.