Under Pressure - Devlog #2: States design!


๐Ÿ“ข Under Pressure V1.0 is out for free on Itch.io! ๐Ÿ“ข

Find a Tool:

At first I was looking for a simple, efficient, easy-to-update way to write down state graph.
With this short scope project, I aimed to improve my development process.
And by that having a graph to overall all game states was really important to me.
I also wanted to have a tool that run in local, not relying on web applications or licences.

So I decided to write my graph using Mermaid on Visual studio code.
Mermaid.js is very powerful and easy to learn. It has different graph types which useful (such as Mindmaps, Flowcharts or Timelines) .

In my case, I decided to use State diagrams. But I started to use some others for upcoming projects!

Design States Graph:

The game is mainly separate in two states, one per player, Diver then Kraken.
Then a "CheckGame" simple state evaluate if it's the end or not.


So at first we have a basic graph for whole game.


First Diver pick and play a card. Then Kraken pick and guess cards. To have more flexibility on all game component's behavior, I needed to have more states.


And finally, the game is a solo game so it needs to have a behavior for AI, with different information and behavior (different timings, AI "thinking", etc...)


It really helps me quickly write down different states and their substates.

Having this whole graph also guides me  to place the correct timing on all states. In order to have a smooth transition between a Kraken Guess, an AI "thinking" or Diver messages state are driven.

Under Pressure structure is based on Scriptable Objects events and a few managers. All Managers (UI, Sounds, AI, FX, ...) are listening to his needed states, and all are called simultaneously.

Here the link to my UnderPressure_States.md file: https://pastebin.com/KJsKGLzg

Support our games!

๐Ÿ™ You can help us by giving with Itch.io's Support feature! It will really help us to continue making our games. Or buy our first game "The Bastonnes" on Steam

For now, we are working on Under Pressure's updates and we start working on the next projects. If you want to get the latest news, follow us on Twitter, Instagram or join our Discord server


Get Under Pressure

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.