SFML community forums
General => SFML projects => Topic started by: paupav on December 30, 2015, 11:21:53 pm
-
So, I wanna create simple multi player game and here is what I've done so far. Please comment, criticize etc. Idk if this is correct way to do state machine.
https://github.com/paupav/boxGame
http://www.youtube.com/watch?v=rczu5bvQ8h0
-
[video]
"This video has been removed by the user"
Not much use :P
-
fixed :P
-
Idk if this is correct way to do state machine.
Well there are many ways to do a state engines, and many types. Yours just feel pretty good to me, maybe for an engine of this kind you could make your states derivate from a "State" class with virtual methods like an update one, and then make a state array or something like that ;D!
( Something similar was done in the SFML Game developpement book (https://github.com/SFML/SFML-Game-Development-Book) wich is duper great )
-
if this one is fine then i will continue using it. thanks :)