Annex · behind the scenes 📝
Annex

The starting brief

Before the first line of code, there's a sentence. Here is the original brief of Tower Duel, torn and annotated — and what it teaches us about describing a project well.

1The brief, torn and annotated

A project doesn't start with code, but with an intention. Here is the starting ticket, piece by piece, with the comments slipped between the scraps.

✦ the twist

— brief · 1/5 · the game —

New project, versioned on GitHub. First attempt with Phaser JS (latest version): a classic of the old artillery games.

Two players. One tower on each side of a landscape, one cannon per tower. Each player sets the power and the angle of their shot. The wind (force + direction) changes on every volley. Score shown at the top.

Before the match: number of rounds and player names. The landscape changes on every round.

The twist: both players set up their shot at the same time, then the shots fire together.

▿▵▿▵▿▵▿▵▿▵▿

✓ A reference + an intention

“An old classic” is enough to place the genre (artillery); and “the twist…” immediately says what makes THIS game special: simultaneous aiming. Reference + intention = a clear heading.

⚠ One thing to watch

“latest version of Phaser”: at the time of the project, Phaser 4 had just come out (little documentation, shifting APIs). Better to pin a precise version.

✓ by batches

— brief · 2/5 · the batches —

batch 1 — docker, single-page game. batch 2 — biomes chosen before the match + modernised graphics & sound effects (particles, parallax…). batch 3 — a TV that connects becomes a spectator (no view of the setups, no command interface); up to 2 phones/tablets take over a player's controls; once everyone has confirmed, the shots fire. batch 4 — Worms-style, the landscape takes damage (the “obstacle terrain” as well as the “scenery”).

▿▵▿▵▿▵▿▵▿▵▿

✓ An incremental breakdown

From the minimal playable (batch 1) to the rich (batch 4): we have something running very early, then we stack on top. This is exactly the right method.

✓ clear roles

— brief · 3/5 · target devices —

Three roles, set from the start. The multi-screen part only arrives at batch 3, but the brief defines them right away:

DeviceRole
📺 TV / big screenHost & spectator: displays the match, no shot controls.
📱 Phone / tabletA player's controller: sets the angle and power, confirms the shot.
💻 PC / computerEither: host (like a TV) or join as a player.

▿▵▿▵▿▵▿▵▿▵▿

✓ The roles written from the brief

Defining the devices at the start — even if nothing uses them before batch 3 — avoids rediscovering the constraints (“the TV must command nothing”) at coding time.

⚠ 1 word = 1 sense

— brief · 4/5 · nomenclature —

Strict vocabulary: a single word per concept, no synonyms allowed. In case of ambiguity, whoever builds it checks back with the author of the brief; any new word is confirmed before entering the dictionary.

Tower
a player's structure; it carries the cannon.
Cannon
the weapon mounted on the tower; fires a projectile.
Volley
one exchange of simultaneous shots. The wind changes on every volley.
Round
a winnable game; their number is fixed before playing.
Wind
a horizontal gust (force + direction), redrawn on every volley.
Biome
the theme of the landscape (meadow, desert, tundra, volcano…).

▿▵▿▵▿▵▿▵▿▵▿

✓ Why a naming convention

Without one, “tower” means both the structure and the turn of play; “round” and “volley” get mixed up. One word = one sense: the code, the screens and the discussions finally speak the same language.

✓ clean rules

— brief · 5/5 · conventions —

Code & documentation in English (impersonal style, infinitive). Discussions happen in French.

One commit per batch; clear scope; each batch is validated before the next.

— end of ticket —

✓ Clear collaboration rules

Language of the code, commit rhythm, scope, per-batch validation: everyone knows how to work together.

+ The only real gap

The win criteria and balancing (health points, ammo…) only arrived later. Ideally, to be fixed right from the brief.

★The lesson

A good brief holds in four ingredients:

For the curious. A brief says the WHAT and the WHY, not the HOW. The “how” (files, algorithms) is the job of whoever builds it.
Your turn! Write the brief of a mini-game in 4 lines: a reference, your twist, your dictionary (3 words), and 3 batches from the simplest to the richest.

↩ All the annexes

← Annexes The brief