
Video unavailable
This video can't be played right now.
An introduction to finite state machines and the state pattern for game development
In this video, we'll discuss finite state machines and how they can be used to write cleaner, more maintainable, and more expandable code for your games. We'll look at the naive way of managing state in a game, how we can improve upon that method slightly with enumerators, and finally how to build a robust system using the state pattern. Intro: 00:00 Life without state machines: 00:54 Finite state machines: 02:38 Using enumerators: 04:55 The state pattern: 06:09 Final thoughts and where to go next: 10:28 Game Programming Patterns: https://gameprogrammingpatterns.com/state.html Video transcript: https://shaggydev.com/2021/11/01/state-machines-intro/ Artwork by Kenney: https://www.kenney.nl/
Suggested videos

How to write more flexible game code
The Shaggy Dev · 8:36

Finite State Machines in Godot 4 in Under 10 Minutes
Bitlytic · 7:16

Advanced state machine techniques in Godot 4
The Shaggy Dev · 13:02

Game Programming Patterns in Godot: The State Pattern (Finite State Machine)
GameDev w/ David · 29:38

Programming a tactical strategy game in Godot 4
The Shaggy Dev · 14:50

Finite State Machines for Game Development
GetIntoGameDev · 4:28

Developing a tactics engine in Godot
The Shaggy Dev · 11:58

The State Pattern (C# and Unity) - Finite State Machine
One Wheel Studio · 10:04

Finite State Machines -- Game Programming Concepts Series
Gamefromscratch · 22:29

An introduction to graph rewriting for procedural content generation
The Shaggy Dev · 7:31

The State Pattern Is Better Without Classes
ArjanCodes · 26:23

An overlooked alternative to nodes in Godot 4
The Shaggy Dev · 4:07