Skip to main content

Sentences? They rule: syntax as a game mechanic

· 6 min read

Language is just another complex game system, out of the box.


I love puns.

Making jokes with the language itself is fascinating to me: it defies and collides with our social rules of communications in order to explore uncharted shores of our brains. Without puns, no language would progress or evolve. Next time you make a pun, think of it as an active act of evolution of the humankind, and it might alleviate the pain of your probable social demise.

In french, "pun" is translated as "jeu de mots", litteraly "game of words". Indeed, a pun is the result of being playful with language, but what if you tried to translate this concept to video games?

You could end up with something ressembling Baba Is you.

Watch the video to understand what I'll talk about.


With the words of its creator:

Baba Is You is a puzzle game where the rules you have to follow are present as physical objects in the game world. By manipulating the rules, you can change how the game works, repurpose things you find in the levels and cause surprising interactions! (source)

Baba Is You is a variant of Sokoban, a 1981 japanese game about a small guy pushing crates in the correct positions in a warehouse.


A Sokoban puzzle being solved.


Many puzzle games took Sokoban as a basis for their gameplay, but few did it with the creativity of Baba Is You. Because here, you're not pushing boxes, you're pushing nouns, verbs, ... words into or out of sentences that controls the rules of the level.


Walls will stop Baba until the rule 'WALL IS STOP' is dismantled.


Thus, the core game system of Baba Is You is actually the syntax of the English language. Syntax is defined as the arrangement of words and phrases to create well-formed sentences in a language. This definition works for linguistics as well as for computer science, where the syntax of a computer language defines the structure of statements, the "how-to write in ...".

Baba Is You use the internal rules of the English language as the pillar on top of which players will form sentences by moving some blocks and assembling them in the correct order. So it's more that just using words: every game uses words, just by the fact that you have to read text while playing, but they can be easily translated to any language whereas Baba Is You's mechanics are so deeply rooted in English that a translation seems impossible without changing the whole game.


A level can accumulate of lots of rules.


Of course, the end goal is not to make elaborate litterature, but to manipulate rules: rules that controls who the player is, what they can push, what the obstacles are and even what the winning objective is.

And Baba Is You encourages you to be creative, to bend the levels with literal puns in order to solve its puzzles. The game is often built for this, forcing you to adopt a particularly non-sensical solution in order to create a "surprise", an "epiphany" moment when you discover the trick you needed. It's not my favorite type of puzzle, because it creates a lot of frustrating moments where you're just stuck on a level, missing the mental trick to go through at all.


If 'WALLS IS BABA AND BABA IS YOU' then all the walls becomes Baba and you can control all of them at the same time.


But I still love Baba Is You because I'm obsessed with rules. Engaging the player in the definition of the game, writing and rewriting the game as you progress, ... I can't think of a more fascinating design sandbox. This is the kind of sandbox where you can profit or suffer from design puns, where the game is playful with itself and the player.

One of my absolute favorite implementation of the rules philosophy is in the mobile roguelike Seven Scrolls:


In Seven Scrolls, you're a Monk trying to survive in a dungeon. Sort of a follow-up to The Name of the Rose.


Seven Scrolls is a turn-based strategy puzzler, where you can move in 4 directions, shoot beams to fight and kill monsters. Collect the key to unlock the access to the next floor and move to the stairs to go there. Simple.

But on each floor, you can also collect scrolls, up to seven of them of course, which unlocks a particular spell. A spell is structured like so:

When [trigger] happens, [target] receives [effect].

Each [trigger] and [effect] is randomly picked from a different list that the player uncovers as things progress and as spells are picked up. The [target] is always the Monk or a Monster.

Quickly, you'll find yourself chaining or avoiding triggers to use your spells in the most effective way. You can also trigger a spell manually, with the caveat that its scroll will be removed after use but it's necessary to make room for new ones or discard unwanted ones.

With this really simple setup, built around the most basic syntax you could think of, this mobile game provides a variety of gameplay and strategies often not reached by many AAA games. Exploration in the game becomes also an exploration of the rules of the game, thus half of the game is learning what you can do.

Seven Scrolls is a fantastic example of a simple but not simplistic game system.

Let's make a simple rules system

Let's imagine a game where players find scrolls during their exploration of the level. Each scroll is a new rule procedurally built from ingredients' lists.

Create your ingredients, generate rules and analyze the interactions with a simple network dataviz.

When actor does action, subject undergoes effect.

Sentences' ingredients

Actors
Actions
Subjects
Effects