![]() ![]() ![]() Other GUI updates include a win screen and a loading screen. These saved games can only start when the people who were originally in the session all join back into the saved game. Note that players only see their own saved games, not the ones of other people. If the client has any games saved over, that is also displayed to the client. For example the client can see which game sessions are available to join in real time. The client software also got an upgrade to the GUI, there are now new display screens so that the software is more user friendly. From then on the client software can function as normally. From then on the game session thread is responsible for replaying piece information between the players in its game session and the game manager thread can then keep accepting new connections so multiple ongoing games are possible.īack to the game session thread, if the game session thread notices that this is a resumed game, then it will replay the pieces that were stored in the database related to the game back to the players, the client software now also has a replay state, where it reads pieces from the server and doesn’t accept any current player inputs until after the game session server sends a end of replay packet. If the game is a resumed game, the lobby manager has to load the pieces from that saved game by querying MongoDB. ![]() When a session is filled up, the lobby manager spawns a thread and then passes off all the information to the game session thread including whether or not this was a resumed game. This information is fed back to all the waiting clients in real time. The games that is displayed to each player is dependent on the currently created games and also the player’s list of saved games. The clients also send over the lobby number that they want to join, and while the lobby manager server is waiting for replies from clients, it also sends the waiting clients updates to game sessions: whether there is a new game session created by another player or if another player joined a lobby. The main thread of the server acts as the lobby manager, and accepts incoming communication with clients. Last week, over Thanksgiving break I updated the server code so that it has all the functionality promised from back during the beginning of the semester. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |