Blog 22

Today we talked about MS3. There are 2 parts:

  1. Having logged in global variable on game object stating your logged in-Session management
  2. Communicate with web server from our game app- This is more complex
  3. Get sensor information (e.g. grab picture from your camera and store it, or use movement on our device)- this is simpler

For part 1 Jason is used as wrapper for information sent over web. Wrap information in Jason using HTTP POST and send this to the web server.

Thus this milestone is implementing multiplayer mode of the game this is by having a request and post whenever the current player moves scene which says to web server “playerid=1 is in sceneid=2 who else is in this scene”. The table in the web server will have the following attributes GameID, SceneID, and PlayerID.

SceneID’s must be unique for your game.

NOTE: You don’t need to have map image screen working you could just display text list of all scenes and the players in them, which is accessed when the user types in “where is everyone”

Milestone 3 documentation-Resubmit every documentation , and add additional information about how you did what you’re doing, how you went about it, any problems and how you solved it

 

 

Leave a comment