#godot #gamedev #fsm #design
Let's talk about a classic game dev design pattern: the finite state machine (FSM)! And we're actually going to apply it on a slightly different example than usual: a simple traffic light :)
🗒 Text version on Medium: [ Ссылка ]
🔶 Github repo with the assets & demo: [ Ссылка ]
00:00 - Introduction
01:22 - So, what’s a state machine?
05:46 - Setting up our state machine
12:53 - Implementing our states logic
17:54 - Adding per-state specificities
21:37 - Final words
![](https://i.ytimg.com/vi/Kcg1SEgDqyk/maxresdefault.jpg)