StrategyMachine 1.1.0 Scripts 4.1 Community
Submitted by user SrColoma; MIT; 2024-05-05
Implementation of a strategy machine for Godot Engine, similar to a state machine but less restrictive (godot 4.1+)
Nodes:
StrategyMachine
StrategyController <- here the interactions
Strategy <- here the concrete behavior
The machine follows only one strategy, but other strategies can be turned on and off without relying on the machine knowing their state.
The philosophy is that the controllers only know when to turn on, turn off, or switch strategies, and that the strategies only have concrete implementation of what they are going to do.
View files Download Submit an issue Recent Edits