Skip to content

Linear action games

How Patter slots into a linear action game.

A linear action game tells its story in cutscenes and briefings, and keeps it going during play with radio chatter and barks. Most of it is voiced. Patter holds every line and the cues that go with them, and its tools record and track the voice. Your game runs the mission, decides when each line is due, and plays the audio.

Write a scene per cutscene or briefing. Lines carry the cues your game needs as Game Data: a camera shot, an animation, a mood for the performance. Wordless game events carry the rest, such as a sound, a door opening, or a cut to the next shot.

(game event: camera = "wide-hangar")
COMMANDER: You've got twenty minutes before the convoy leaves.
(camera: close-commander)
COMMANDER: Get in, plant the charges, get out.
(game event: animation = "squad-stands")

Structure introspection lists every beat with its Game Data without playing it, so a cutscene can be laid out as tracks in your engine’s sequencer, one per beat.

Radio runs over the action, so it plays in a flow of its own while the player’s flow carries on. A speaker qualifier such as COMMANDER (RADIO) tells your game to put the voice through the radio filter, and it’s still the same character.

When something happens, such as an enemy spotted, a reload, or a grenade, your game plays a bark block for that event, one flow per speaker so each soldier works through the lines on their own. Shuffle keeps them from repeating, and Best match picks the line that fits, such as one for low health and one for a generic hit. Tags group barks across scenes for your game to filter.

A beat’s padAfter sets the pause after it, and a negative one starts the next line before this one ends, so a character can cut in. When your game has to stop a conversation, such as when the speaker is hit, it closes the flow or sends it to another block. Navigation covers moving and finishing flows.

Every line has a recording status and a place in the voice script, and writers can record a scratch voice clip at their desk to hear a scene before the actors do. Audio covers the production side. Each line’s text is its subtitle, and cues in brackets, such as [explosion], are closed captions that players can turn off.

  • The mission, the triggers, and the timing of every line.
  • Playing the audio and the animation, and interrupting them.
  • Which lines matter more when two are due at once.

Rarely. A linear game knows what comes next.

Open source under the MIT licence, made by .