GameMode vs GameState
|
Hey all, So I'm setting up a GameMode and GameState for my project. After reading online a lot about the differences between the two, I've downloaded the shooter game to get an idea as well. So I want to see if I had the correct idea... in super laymen terms. GameMode seems to be the referee, while GameState is kinda of like the assistant ref, just keeping an eye one the clock, who's on what team, what the score is as a whole (PlayerState keeps track of individual scores), and possibly where those players might be on the field if we care about that sort of thing, but mostly TEAM stats - not individual state. If I hit a player, I don't tell GameState. I tell GameMode and it will decide whether I really hit the player or not. Also, no variables, whether public, private, or protected, should ever changed within GameMode, as those are the rules that are to be set and maintained through the match. If I want rules to change in the middle of a match, whether it's a major or minor change, should I make a separate GameMode and just swap the GameMode? Thanks in advance!
(comments are locked)
|
Follow this question
Once you sign in you will be able to subscribe for any updates here
Simply GameMode is about rules and managing them, GameState is about game statistics, scores. GameState is a part of GameMode. But detailed answer would be helpfull for me too.
Yeah. I was just attempting to put it in terms more people may understand... although I'm still assuming the majority of readers will have a basic idea of sports and referees.