# marketStallKit: Market Day
**Player-run market stalls with customers and living prices.** Players lay goods out from their own bag onto stall slots and set a price; on market days customers walk in, browse (a thought bubble shows what they are eyeing), and buy, bargain or walk away. What a customer will pay changes every day with the season, the freshness of the goods, a seeded hot and cold item of the day, how many of the same item are on the market, the kind of market day and the kind of customer. Multiplayer from the start: one machine decides every sale, so a lot is never sold twice. Eighteen stall and cart styles, eight price sign styles, seven customer kinds, seven market day kinds, three haggling modes and four end-of-market summaries, all original art, each switched with one setting.
Version 1.0.10 · multiplayer, host-authoritative · phone, desktop and gamepad · 36 tests.
## Dependencies
**No hard dependencies.** The package holds only its own code, art, scenes, guides and two sounds made for it; installing it adds nothing else. Other kits are reached by name while the game runs (a guarded lookup in the package registry), and used only when the world has them:
| kit | what it gives the market | without it |
| --- | --- | --- |
| **inventoryKit** (Pack Rat) | the goods: the stall panel lists the player's real bag, laying out takes from it, take-backs return to it | the game hands its bag in with `Market.setInventory` (below); until then lay-outs are refused with "no bag" and a warning says what to do |
| **economyKit** (Market Square) | the money: every sale is granted to the seller by economyKit's bank, which is also the market's authority | the game hands its money in with `Market.setPayment`; until then sales are recorded unpaid (`paid = false`) and a warning says what to do |
| **worldClockKit** | day, hour, season and rain open and close the market on market days | the built-in day counter (`dayLengthMinutes`) or `Market.openNow` |
| **friendshipKit** (Neighbourly) | befriended villagers come to the market as regular customers | no regulars (or `Market.setFriendship` with your own) |
| **questKit** (Questing Grounds) | the `marketSale` objective kind, moved on every sale for its seller (`questSales = false` turns it off) | no sale objectives |
| **farmLifeKit** | the free top-centre rect its HUD keeps for a card (`hudRect("banner")`) | the banner sits 64 points below the top edge (`cardTop`) |
**The kit keeps no bag and no wallet of its own.** A world with neither inventoryKit nor economyKit hands both in once, on every machine (the `showcase` scene does exactly this):
```luau
Market.setInventory({ name, list = fn() -> { { id, count } }, count = fn(id), take = fn(id, n) -> (ok, why?), give = fn(id, n) })
Market.setPayment({ name, pay = fn(sellerKey, amount, sale) -> boolean, balance = fn(key) -> number? })
```
## Install
Search ZeroMind for **marketStallKit** (or "player-run market stalls") and install it, or in the editor's shell:
```sh
zero zeromind installAsset 7374eb3d-d8dd-4716-9af6-de864c03151f
```
Code reaches it as `require("~marketStallKit.api")` wherever it is installed (or `require("marketStallKit.api")` when the package sits at the top of the world).
## Quick start
In a scene's `build.luau`:
```luau
local Market = require("~marketStallKit.api")
function content()
-- one setting picks the look of every stall placed after it
Market.defaults({ style = "canopy", signStyle = "chalkboard" })
Market.stall({ -4.5, 0, -3 }, { id = "veg", slots = 6, title = "Bramble Farm" })
Market.stall({ 4.5, 0, -3 }, { id = "tea", style = "teaStall", signStyle = "minimal", slots = 4 })
Market.stall({ 8.5, 0, 2 }, { id = "wagon", style = "wagonTailgate", yaw = -90 })
Market.square({ spawn = { { -16, 8 } }, exit = { { 16, 8 } }, pool = 2, haggle = "counterOffer" })
-- plus your player setup (PlayerPrototype and PlayerSpawn)
end
```
In the scene's `entrypoint.luau` (runs on every machine):
```luau
local Market = require("~marketStallKit.api")
function onLoad()
-- with inventoryKit and economyKit installed, skip the two set calls: they are used by themselves
if Market.adapters().inventory == "missing" then Market.setInventory(myGameBag) end
if Market.adapters().payment == "missing" then Market.setPayment(myGameCoins) end
Market.starterGoods({ carrot = 8, tomato = 6, honey = 3 }) -- once per player, into the bag in use
Market.ui.configure({ summaryStyle = "receipt" })
Market.on("sold", function(s) print(s.itemName, "sold for", s.price, "to a", s.customer) end)
end
```
Press Play, walk to a stall, press **E** (or tap **Stall**, or press X / the west face button on a pad), lay goods out, then press **Open market** on the banner. The kit's own world opens on the `showcase` scene, and `gallery` shows every stall, sign, customer kind, summary style and haggling mode side by side.
## API
Build time, inside `content()`:
| call | does |
| --- | --- |
| `Market.defaults({ style, signStyle, slots, ns })` | The world-wide default style for every stall placed after it. |
| `Market.stall(pos, { id, style, signStyle, slots = 1..8, yaw, title, ns })` | Places a stall. `id` is the key its goods are saved under: keep it stable. The customer side faces +Z turned by `yaw` degrees. An empty `title` shows the seller's name. Returns the stall's root entity. |
| `Market.square({ ns, spawn, exit, pool, kinds, customers, regulars, ...settings })` | Places the market square that runs one market: the customer pool (`pool` per kind, or `{ villager = 3, ... }`), where customers arrive and leave (`spawn`, `exit`: lists of `{ x, z }`), a game's own customer models (`customers = { { kind, model, count, bubbleHeight } }`) and, with friendshipKit, one body per villager for regulars. Settings below. |
| `Market.customer(pos, kind, variant?, yaw?)` | A customer model standing still (galleries, posters). |
Settings (in `Market.square`, or `Market.configure` while running): `haggle` ("off", "chance" (default), "counterOffer"), `offerSeconds` 8, `autoAnswer` ("fair" (default), "accept", "decline", or a share 0..1 of the asked price), `regulars` (`{ minHearts = 3, weight = 2, max = 8 }`, or false), `questSales` true (questKit: define `marketSale` and report each sale to its seller; false = off), `openHour` 8, `closeHour` 14, `marketDays` (weekdays 1 to 7, nil = every day), `dayKinds` (`{ [6] = "busySaturday" }`), `festivalDays`, `kindWeights`, `rainKind` ("rainyDay", false to ignore rain), `crowdScale` 1, `maxActive` 8, `minutes` 4 (how long `openNow` keeps it open), `dayLengthMinutes` 0 (built-in clock; 0 = by hand only), `daysPerSeason` 7, `startSeason`, `payTo` ("seller" or "purse"), `purseKey`, `currency` ("coins", economyKit's currency), `anyoneCanOpen` true, `useRadius` 2.6, `sounds` true.
Screens (`Market.ui.configure`, on every machine): `summaryStyle` ("ledger" (default), "receipt", "chalkboard", "toast"), `cardPosition` ("auto" (default: farmLifeKit's rect when installed, else top), "top", "topLeft", "topRight", "bottom"), `cardTop` 64 (points from the top edge: clears a 56-point compass or nav bar), `cardGate` (fn() -> true while another kit's card is up; the market waits), `openButton`, `coins`, `enabled`.
Runtime, on any machine (setup calls on every machine, for example in `onLoad`):
| call | does |
| --- | --- |
| `Market.setInventory(a)` | The game's bag: `{ name, list() -> { { id, count } }, count(id), take(id, n) -> (ok, why?), give(id, n) }`, on the seller's machine. Not needed with inventoryKit. |
| `Market.setPayment(a)` | The game's money: `{ name, pay(key, amount, sale) -> boolean, balance(key) -> number?, authority?() -> peer }`, on the authority. Not needed with economyKit. |
| `Market.setClock(a)` | `{ name, day() -> number, hour() -> number?, season() -> string?, raining() -> boolean }`. |
| `Market.setFriendship(src)` | Your own friendship system for regulars: `{ name, villagers() -> { { id, name, color, loves = { items, tags }, likes, dislikes, hates, model? } }, hearts(villagerId, playerKeys) -> number }`. Not needed with friendshipKit. |
| `Market.setItemInfo(fn)` | `fn(itemId) -> { name, basePrice, seasons = { "spring" }, tags = { "vegetable" }, color = "#hex", shape }` or nil. `shape` draws the goods: round, long, big, loaf, pie, jar, bunch, fish, egg, wedge. |
| `Market.setItemPool(ids)` | The items the hot and cold item of the day come from. |
| `Market.defineCustomer(def)` / `Market.defineDayKind(def)` | Add or replace a customer kind (`likes`/`dislikes` tags, `loveItems`/`likeItems` item ids) or a market day kind. |
| `Market.starterGoods(map)` / `Market.giveGoods(id, n)` | Goods given once per player (remembered in their player data), or more goods, through the bag in use. |
| `Market.setOfferHandler(fn)` / `Market.answerOffer(offerId, accept)` | Answer counter offers on this machine's goods from code: fn(offer) -> true, false, or nil to ask the player. |
| `Market.cardShowing()` | Whether a market card (announcement, offer prompt, summary) is up, and which kind. Cards show one at a time. |
| `Market.openNow({ kind, minutes })` / `Market.closeNow()` | Open or close by hand. |
| `Market.layOut(stallId, slot, itemId, count?, price?)` | From the local player's bag; returns `ok, why`. Price defaults to the suggestion. |
| `Market.setPrice(stallId, slot, price)` / `Market.takeBack(stallId, slot)` | Your own lot only. |
| `Market.on(event, fn) -> stop` | Events, below. |
| `Market.market()`, `lots(stallId)`, `stalls()`, `crowd()`, `ledger()`, `balance(key?)` | Read the shared state. |
| `Market.suggestPrice(itemId)`, `perceivedValue(itemId, kind?, freshDays?)`, `itemInfo(itemId)` | Prices. |
| `Market.repairScene({ dryRun? })` | Editor, edit mode: removes saved second copies or orphans of stall and customer parts that an older version left in the open scene, then saves it. Returns what it removed. |
| `Market.defineQuestKind()`, `Market.setQuestKit(mod)` | questKit `marketSale` objectives: define the kind now; hand in a questKit api module the registry cannot find (false: none). |
| `Market.isAuthority()`, `adapters()`, `catalogue()`, `configure(opts)`, `config()`, `wipe()` | Everything else. `adapters()` answers `{ inventory, payment, clock }` names ("missing" when none). |
| `Market.ui.configure(opts)`, `Market.ui.toast(text)`, `Market.ui.openStall(id)` | The screens. |
| `Market.ui.touchControlRects()`, `Market.ui.cardPlacement(w, u, portrait, h?, controls?)`, `Market.ui.bannerBox(place, w, h, u)`, `Market.ui.cardShift(w, h, u, top, cardW, controls?)` | Where the banner and cards go: clear of the engine's touch controls (buttons, the `...` fan and an open overflow sheet, read from `ui.safeArea().controls`), so a widget of the market never makes a control give way. |
Events fire on every machine (from a shared feed): `opened` (day, kind, kindName, season, hot, cold, hotName, coldName), `closed` (day, kind, total, count, sellers, sales), `sold` (stall, slot, item, itemName, price, asked, haggled, countered, value, seller, sellerName, paidTo, paid, customer, customerIdx, factors), `offered` (id, stall, slot, itemName, asked, offer, seller, customer, customerName, untilT), `offerAnswered` (id, accepted, by = "seller" or "auto"), `browsed`, `walkedAway` (reason: pricey, budget, gone, nothing, declined), `laidOut`, `tookBack`, and `refused` (this machine's own requests). Use them for what each player sees and hears; act on the shared world only where `Market.isAuthority()`.
## Styles
Each is one setting.
- **Stalls and carts (18)**: `canopy` (Canopy Stall), `flowerCart`, `fruitBarrow`, `festivalBooth`, `crateStand` (Rustic Crate Stand), `bakeryCart`, `fishCounter`, `pixelStall`, `paintedStall`, `lanternStall` (Lantern Night Stall), `honeyHut`, `seasideKiosk`, and two stalls in the kit's three finishes (classic, painted, pixel): `wagonTailgate` / `wagonTailgatePainted` / `wagonTailgatePixel` (a farm wagon with the tailgate dropped and a canvas bonnet) and `teaStall` / `teaStallPainted` / `teaStallPixel` (a tasselled tea stall with a copper urn, tea tins and a giant teacup sign).
- **Price signs (8)**: `chalkboard`, `woodenTag`, `paperFlag`, `pixelTag`, `paintedCard`, `slate`, `brassPlate`, `minimal` (a plain white card with a thin rule).
- **Customers (7)**: `villager`, `child`, `granny`, `chef`, `collector`, `tourist`, `farmer`, plus regulars (befriended villagers) and a game's own with `Market.defineCustomer`.
- **Market days (7)**: `quietMorning`, `busySaturday`, `festivalFair`, `rainyDay`, `touristRush`, `connoisseurDay`, `harvestMarket`.
- **Haggling (3)**, the `haggle` setting: `off` (fixed prices), `chance` (each kind haggles by its own chance and pays halfway), `counterOffer` (the customer names a price; the seller accepts or declines in a small card or a callback; `autoAnswer` answers for a seller who is away).
- **End-of-market summaries (4)**, `summaryStyle`: `ledger` (cream card, sellers ranked), `receipt` (a till slip, one line per sale), `chalkboard` (a tally per seller, total circled), `toast` (one line, no card).
`Market.catalogue()` returns all of it as data, with every description.
## How prices work
Perceived value = base price x season x freshness x popularity x saturation x day kind x customer kind:
- **Season**: in season 0.9, out of season 1.3, items with no seasons 1.0. Chefs add +0.2 for in-season goods, collectors +0.25 for out-of-season goods.
- **Freshness**: 1.12, 1.0, 0.92, 0.85, then -0.07 a day down to 0.5. Preserves, honey, grain and souvenirs keep.
- **Popularity**: the hot item of the day 1.5, the cold item 0.7, seeded by market and day so every machine agrees.
- **Saturation**: each extra lot of the same item anywhere on the market -12%, never below 0.55.
- **Day kind**: its value multiplier and tag boosts.
- **Customer kind**: its value multiplier, x1.3 for goods it likes, x0.7 for goods it dislikes, x1.5 for a regular's loved items.
The buy chance compares the price with that value: well under it 98%, at it 80%, falling to 35% at the kind's price sense and to nothing a quarter above that, shifted by the day's mood. A customer who would not pay a price a little over its value bargains as the `haggle` setting says. Every number is in `Pricing.FACTORS`.
## Regular customers (friendshipKit)
With friendshipKit installed, `Market.square` places one body per villager (friendshipKit's own model for each), and each villager comes to the market on a market day when a seller with goods out has at least `regulars.minHearts` hearts with them. A regular has the villager's name over the goods they eye, buys what they love (friendshipKit `loves` items x1.5, tags x1.3) and avoids what they dislike or hate, comes once per market day, and pays a little more the better the friendship. Nothing to write in the game; `regulars = false` turns it off.
## Quest objectives (questKit)
With questKit (Questing Grounds) installed, the market defines the objective kind `marketSale` and moves it on every sale. Nothing to write in the game:
```json
{ "kind": "marketSale", "target": "any", "count": 5 }
{ "kind": "marketSale", "target": "honey", "count": 2 }
```
- `target` "any" (or "") counts every sale, an item id only sales of that item.
- The authority decides each sale; the seller's own machine hears it in the shared feed and reports one `marketSale` to questKit for its player (questKit forwards a party quest's progress to its own authority), so each sale counts once, for whoever sold it. A seller who has left the game when their goods sell is not reported.
- The MarketSquare defines the kind on start and asks questKit to read its quests again, so quests using it load. A game that defines `marketSale` itself keeps its own definition.
- `questSales = false` (in `Market.square` or `Market.configure`) turns all of this off. A game that already reports sales itself (`Quest.report("marketSale", ...)` in a `sold` handler) should drop that, or set `questSales = false`, so sales are not counted twice.
- `Market.defineQuestKind()` defines the kind now; `Market.setQuestKit(mod)` hands in a questKit api module the registry cannot find.
## With several players
- **One authority**: the lowest peer in the room, or economyKit's bank machine when economyKit pays. It decides every lay-out, price change, take-back, counter offer answer and sale, one at a time.
- **Requests, not writes**: other machines send requests on the `marketStallKit` channel and draw what the store says. A refused lay-out puts the goods back in the player's bag. A request the market does not answer within 6 seconds is reported as `refused` with `timeout = true`, and a lay-out whose goods never reached the counter returns them to the bag. The square listens again on every play session start.
- **Only your own goods**: only the player who laid a lot out can re-price it, take it back or answer offers on it.
- **Customers** are pooled models; the authority writes a small path record per customer when its phase changes, and every machine walks the models on the shared session clock.
## Saving
Lots, the market record, the ledger and the feed live in world data (`runtime_data.world`) under `marketStallKit/<ns>/`. Unsold goods stay laid out across market days and sessions, and keep ageing, until the seller takes them back. Goods and coins themselves live where the bag and money in use keep them (inventoryKit, economyKit, or the game's adapters).
## Controls
E (keyboard), the west face button (pad), or the Stall touch button opens the stall panel at a stall; the panel's and cards' buttons take mouse clicks and taps, and a pad moves focus with the d-pad and presses with south. The panel is a bottom sheet on a phone held upright and a centred panel otherwise; cards wrap their text and sit below the banner. Checked at 1600x900, 1024x576, 390x844 and 844x390.
## Sounds
`sounds/marketChime` (a marimba and handbell chime, on a sale and when the market opens) and `sounds/basketCoins` (coins into a straw basket, on a sale) were generated for this kit. `sounds = false` silences them.
## Known limits
- Customers walk straight lines through an approach point in front of each stall; place stalls so those lines stay clear.
- Goods are drawn from built-in shapes tinted with the item colour; a game's own goods models are not placed on the counter yet.
- The seller key is the player's account id as their machine reports it; the authority does not cross-check it against the players registry yet.
- Regulars are judged by the friendship of sellers with goods on the market (and the authority's own player).
## Tests
`marketStallKitTests` (36 tests): pricing math, the three haggling modes and counter offers (accepted, declined, answered for an away seller), regulars from a fake friendship source, no built-in bag or wallet and sales paid to the seller through the adapter, single-authority sales, every play session hearing other machines once, unanswered requests, persistence, catalogue counts, the four summary styles, one card at a time, card placement, the banner and cards kept clear of the touch controls on a phone held sideways (the overflow fan and its open sheet included), the panel at phone sizes, and a saved scene holding stalls loading every stall part exactly once under its own stall, the saved showcase holding every stall and customer part itself (what a player's runtime boot loads), and with a questKit stand-in the `marketSale` kind defined once (a game's own kept, none with `questSales = false`) and each sale reported once to its seller only. In-memory store for the market; the saved-scene test loads the showcase and puts the open scene back.
## Guides
- *How to add a market stall where players sell to customers* (`how-to-add-a-market-stall-where-players-sell-to-customers`).
- *Example: build a small farmers market game with stalls and customers* (`example-build-a-small-farmers-market-game-with-stalls-and-customers`).
## Changes
- **1.0.10**: one purchase per customer. A pooled customer body that had walked home went straight back into the free pool, so on a busy day the same customer could walk in again and buy a second time while other bodies never came (the test "one purchase per customer, every sale paid" failed). The market now remembers which bodies came today and sends in one that has not come yet before reusing any; a crowd bigger than the pool still reuses bodies as before.
- **1.0.9**: the test "stalls load whole and once" passes on the current engine. While a suite runs, the engine withholds authoring for every scene the world already holds, and a scene build of one raises. `repairScene` compares the open scene against such a build, so on the world's own showcase it answered "could not compare the scene with its build" and the test failed with "attempt to get length of a nil value". The test now loads a copy of the showcase (scene.json, entrypoint and build) made in its own sandbox and checks that. The kit's own code and how stalls behave are unchanged.
- **1.0.8**: the stalls, carts and customers show in a published game. `Market.stall`, `Market.customer` and `Market.square` placed each one as a nested `SceneModule` placement, and a scene build records only the placement's component, never what it builds; an editor session rebuilds it on load, but a player opening the published world boots the runtime profile, which loads `scene.json` as written and runs no scene module, so the square stood empty there (no stall, cart, barrow, customers or `MarketStall` registration). The kit now builds each one straight under a plain root inside the scene's own build, so `scene.json` holds every part. The roots sit under one group per market (`Market_<ns>`, `Market_models` for `Market.customer`), so rebuilding a scene saved by 1.0.7 or older removes the old placements and their twins by itself. A game takes it by updating and rebuilding its scene (`scene.reload`), then saving and pushing. New test (the saved showcase holds every part); tests 36.
- **1.0.7**: goods can be laid out in a published game. The market built its inventoryKit (and economyKit, worldClockKit, friendshipKit, questKit) adapter once, over the first module table it saw, and kept it for good. A world opened fresh (a player's published game) reloads inventoryKit once what it requires lands, so the market held the old table, whose bag is never made: every lay-out was refused with "the player has no inventory yet", the stall panel showed an empty bag, stalls stayed bare and nothing could be sold (an editor session that had already settled was unaffected). Optional kits are now required again on use (the name that answered is remembered), and an adapter over a detected kit is rebuilt when the kit's module changes; an adapter a game hands in (`Market.setInventory`, `setPayment`, `setClock`, `setFriendship`) is kept as given. New test (a reloaded kit is reached as its current module); tests 35.
- **1.0.6**: the market banner and cards keep clear of the engine's touch controls. On a phone held sideways (844x390) the engine fits one row of action buttons and puts the rest (Interact, Jump, Sprint) behind a `...` fan; the banner, with its Open market button, could land on that fan (farmLifeKit's free rect or `cardPosition = "bottom"`), and a fan under a widget that takes a tap gives way and is drawn nowhere, so those actions could not be reached. The banner now reads `ui.safeArea().controls` (every button, the fan and an open overflow sheet) and, where its place lies on one, moves to the first free place (the top centre, the top corners, then down the screen, clear of farmLifeKit's own pieces too), narrowing when it must; it moves again while the overflow sheet is open. Cards move left of the controls where a centred card would lie on them. New: `Market.ui.touchControlRects()`, `bannerBox()`, `cardShift()`, and `cardPlacement(w, u, portrait, h?, controls?)` (`avoided = true` when it moved). New test; tests 34.
- **1.0.5**: questKit objectives. With questKit installed (reached through the package registry, still no dependency) the MarketSquare defines the objective kind `marketSale` (target "any" or an item id; a game's own kind is kept) and asks questKit to read its quests again; every sale the authority decides is reported once, on the seller's machine, for the seller. `questSales = false` turns it off; `Market.defineQuestKind()` and `Market.setQuestKit(mod)`. Two new tests; tests 33.
- **1.0.4**: stalls load whole and once. The kit's runtime used to write prices, seller titles and customer bubbles onto the entities the Stall and Customer scene modules built; a scene saved while that ran kept those entities as hand-placed copies, so an editor that rebuilt showed twins and a client that only loaded the saved scene could find stall parts orphaned (their parent rebuilt with a new id) or missing. The runtime now draws that text on temporary children it makes itself (`priceLive_i`, `titleLive`, `bubbleLive`), which no scene saves, and only reads what was built. `Market.repairScene()` (editor, edit mode) takes the stray copies out of a scene saved by an older version and saves it; `{ dryRun = true }` lists them. The showcase scene is repaired. New test: a saved scene holding stalls loads every stall part exactly once under its own stall. Tests 31.
- **1.0.3**: three haggling modes (`haggle = "off" | "chance" | "counterOffer"`, with an Accept / Decline card, `setOfferHandler` and `autoAnswer` for an away seller). Four end-of-market summaries (`summaryStyle = "ledger" | "receipt" | "chalkboard" | "toast"`). Cards show one at a time (`Market.cardShowing()`, `cardGate`), wrap on phones and sit below the banner; the banner's place is one setting (`cardPosition`, `cardTop`; farmLifeKit's free rect when installed). New stalls: the wagon tailgate and the tea stall, each in classic, painted and pixel; a minimal price sign. Fixed the Wooden Tag and Brass Plate signs drawing only their number: their rounded-rect extrusions carried a bevel, and on a fresh scene load the engine drops the whole model of a scene module whose part is such an extrusion (board and post), so the bevel is gone. Their model group is also named `signModel_<style>` so it never shares a name with a placement. Regular customers from friendshipKit (guarded, no dependency). The built-in bag and wallet are gone: goods and coins come from inventoryKit and economyKit, or adapters the game hands in, and the kit says so clearly when neither is there. The sale sounds borrowed from Palm Heat '86 and a tower game are replaced with two sounds made for this kit; those borrowed clips are what pulled vehiclesKit, driveCams, driveSurfaces, engineVoices, gaugeClusters, torqueCars, barsKit and Palm Heat into every install. Tests 29.
- **1.0.2**: multiplayer fix: the market subscribes to its channel again on every square start and engine mode change, so a non-authority's lay-out, open and close work from the second play session on; unanswered requests report `refused` with `timeout = true` and return the goods. Tests 17.
- **1.0.1**: the gallery scene has a player setup.
- **1.0.0**: first release.