Log inGet started
Package

MarketLevel.module

This package holds more than this page lists. See all of its files in its world.

README.md

MarketLevel

Builds the level of the "Market Day at Mirage Wells" showcase: desertKit's oasisValley desert (seed 7, 400 m) with its Buried Town rebuilt into a living oasis market town. scenes/main.scene/build.luau calls require("showcase.MarketLevel").build({}) inside content(); it is re-runnable (every rebuild states the same entities).

What it places, all with colliders where people bump into them:

  • six market stalls with striped, sloping cloth awnings and goods (fruit, spices, pots, rugs, brass lamps, grain), round the well plaza
  • a tea house with a domed tea room, counter and samovar, and a shaded stone terrace with three low brass tea tables and cushions
  • a shrine with a carved altar, columns, a small blue dome and four prayer rugs
  • the town well (desertKit's stone well head) dressed with a timber frame, pulley, bucket, trough and jars, with a queue line
  • nine flat-roofed mud homes (the Buried Town's roofless ruins rebuilt, plus two by the oasis), each with a shared interactKit hinged Door named Door_<Name>
  • a granary with silos, a dock with a jetty and moored boat on the pool, three cropsKit rice paddies (tended), two watch posts, five benches, a performance rug, two begging spots, a sweeping courtyard
  • sixteen worldClockKit WorldLamps (lantern posts, hanging lanterns, torches) that light at dusk, town palms, banners at the gate
  • one navKit NavMap grid over the town, the gate approach and the oasis bank

The Desert's keepClear is computed from every footprint and walking lane, so the desert scatters no ruin, palm or rock where the town stands, while keeping the old perimeter walls, the gateway and the well head.

M.PLAN holds every position. M.build() returns { spawn = { position, rotation, yaw }, layout }; M.exportLayout() writes showcase/marketLayout.module (activity spots, homes, watch posts, player spawn, centre) from the last build's layout. Goods meshes are generated bundles under showcase/meshes/.