I have been looking for good programming theory. At that time, I thought StateMachine was very good. But for me personally, I can only design a good StateMachine when there are few states. Once there are more states, it is difficult to deal with clear ideas. The logic of this game prototype is already very messy and hard to add new feature, this is why I didn’t open it at that time.
Until a while ago, I saw that a PR used ECS, and Mr.doob recommended ECSY. Through searching, I learned that this is a commonly used programming method in games, not only the logic is clearer and more flexible, but the performance is also better. After viewing the source code of examples, I also think it is true.
Would you say it made the dev process any easier or the code any clearer?
Still trying, but I think and hope it will.