quest'n'click 4.5.0 · r1

Built for quest'n'click 4.5.0, revision r1. Whether it is published, and which one is current, is recorded at publication.json.

Example games

Français · Type: reference · Audience: author, contributor · Context: engine repository, created project · Status: ready · Applies from: 4.4.0

The engine repository holds five games under games/. Each one exists for a reason: a starting point, a sample that shows every feature once, a reference chapter the CI proves and plays, a playable example of the hero choice, and the sample game of the Reality Bridge. Read the one closest to what you want to write before writing it.

IdTitleRoomsWhat it showsSince
_template(the new game's title)1the starting point of every new game1.0.0
demoThe Pantry Key3every engine feature once; the default game1.0.0
referenceThe Night Market8the reference chapter: two playable cats, staging, Remix, speedrun categories3.4.0
heroesWho Am I Today?1choosing the hero, in two languages, voiced per hero4.4.0
signalsSignals1signals from the world outside (Reality Bridge) and the connectors4.1.1

Playing or checking one of them

In the engine repository, the current game is GAME=<id>, else the game last selected (npm run game, npm run new-game), else package.json → config.game, which is demo.

# in the engine repository, on your machine
GAME=reference npm run dev            # play it in the browser
GAME=reference npm run solve          # a way from New Game to the end
GAME=reference npm run game           # make it the current game for every later command

A created project holds one game, in game/, made from _template. The npm package ships games/_template/ only: read the other four in the engine repository (github.com/wanoo/quest-n-click, folder games/).

_template

Form

games/_template/: game.ts, cast.ts, items.ts, rules.ts, one room rooms/start.ts with its layout/start.json, storyboard.json, site.json, placeholder art under art/, and tests/game.test.ts. The strings __ID__ and __TITLE__ are replaced at creation.

What it is for

The copy every new game starts from:

It declares nine verbs (Give, Open, Close, Take, Look, Talk, Use, Push, Pull), a hero, a hintItem (note) given at the start, and a skin that points at the starter interface icons.

Constraints

The placeholder art is drawn from shapes (tools/placeholder-art.py). A release refuses it until every file is replaced and its provenance reviewed (quest-n-click provenance --lock): see Asset provenance.

demo: The Pantry Key

What it is

A 15-minute point-and-click that shows every engine feature once. Pixel the cat wants the sardines; Grandma locked them in the pantry and lost the key. Three rooms: Grandma's house, the garden, the market. Design: games/demo/STORY.md; every line: games/demo/storyboard.json.

What to read in it

Default

demo is the engine repository's default game (package.json → config.game).

reference: The Night Market

What it is

The engine's second real game (3.4, D13): a 30-to-45-minute chapter built only from the sample game's art and sound, reframed. Festival night, every light in the market is out, and Lou needs the lights, the festival board and a lit lamp. Eight rooms: street, market, alley, backlot, yard, kitchen, cellar, hall. Design: games/reference/STORY.md.

What to read in it

Constraints

It is a test bench as much as a story. The CI builds it (GAME=reference), proves it whole and chapter by chapter, and plays it to the end at the keyboard in Chromium and WebKit, and in French with no English default visible. A change to it can fail the reference gate.

heroes: Who Am I Today?

What it is

The playable example of choosing the hero (4.3.0 "Hero Choice", added in 4.4.0, ADR 0022). One room, the garden. At New Game, three heroes on portrait cards (Pixel, Biscuit, Gaby the gull), the same puzzle for each (the gate key under the watering can).

What to read in it

Constraints

Its browser test (e2e.mjs) picks each hero in each language, saves, continues and finishes. The CI builds it and proves it for every hero (GAME=heroes npm run solve -- --prove). See Heroes and Voices.

signals: Signals

What it is

The sample game of the Reality Bridge (4.1.1). One room, a garden: the gate opens when the right answer arrives by email (a signal from the world outside), or, if the outside never answers, when the radio on the bench is used (the signal's fallback).

What to read in it

Constraints

The CI runs GAME=signals npm run solve:reality and plays it end to end against a reference Bridge. See What the Reality Bridge is and Signals and the manifest.

Limit · examples-not-templates Only _template is meant to be copied. The four others are examples and test benches: their content changes with the engine, and demo, reference and heroes reuse each other's art and verbs (heroes and reference import demo's game file). Copy a mechanic, not a whole game.


Edit the source of this page · Report an error