Implementing state machines and the state pattern in Godot
In this follow-up post, we’ll look at how we can take the theory we discussed previously and apply it to Godot.
In this follow-up post, we’ll look at how we can take the theory we discussed previously and apply it to Godot.
State machines make it easy to manage the state of your objects and help you write cleaner, more maintainable, and easily expandable code.
This keyword allows for static typing of custom classes without having to litter preload commands everywhere.
The Polygon2D node can be a great way to create and draw custom physics objects in Godot.
It’s not perfect, but it could work for simple games.