Hi,
I’m currently making a turned base game (risk style game) where there are 2-4 players (single/multi + computers).
I’ve been thinking about how to design the game so that:
a) Only one player makes his moves at a time
b) Screen only updated when something has happened, there is no animation going on (that is, it’s not as a traditional game loop where it’s updated as fast a possible)
c) When player is making his moves I want to display messages on the screen like “Player A attacks Player B”.
d) I want there to be some user interaction even though it’s not the users turn, like highlighting objects of interest, display help. If the user tries to do something when it’s not his turn, he gets a message “wait for your turn”.
I was thinking about having the “Screen”, that is the graphics that are displayed, running as a seperate thread, and then the “Logic”, doing all the players moves, running as a seperate thread. Logic would tell Screen to refresh itself when something has happened. But this only covers the logic in the game, not when the user has interaction with objects of interest (such as highlighting). So I’ve begun to wonder if there aren’t some standard ways of doing this?
Thanks!