Suggestion: Implement finite state machines
Closed this issue · 5 comments
I think it might be a good idea to implement our game like the guy in this video talks about. I think its better then the direction were heading in right now and it should be pretty easy to implement since we havnt dont much yet.
This looks like a good idea.
To Do:
-Create states enum in the room
-Create normal script
-Create jumping script
-Create moving script
Later:
-Create pushing/pulling script
-Create dying script
I have started to implement this as stated in one of my pushes this evening. Still not at a point where this issue can be closed though.
I have implemented the stand, jump and run states. I also added a script to handle the gravity in all states as well as a input handling script. There is an issue when the character tries to move to the left at the moment. Will try and sort this out.
We can probably close this issue now as the machines are fully implemented. I'll make a new issue if i come up with any more specific parts that we should add to this system.