Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while( user doesn't exit )
- check for user input
- run AI
- move enemies
- resolve collisions
- draw graphics
- play sounds
- end while
- while( user does not exit )
- check for user input
- send commands to the server
- receive updates about the game from the server
- draw graphics
- play sounds
- end
- while( true )
- check for client commands
- run AI
- move all entities
- resolve collisions
- send updates about the game to the clients
- end
- connect to server
- while( user does not exit && connection live)
- check for user input
- send commands to the server
- estimate outcome and update world data with 'best guess'
- draw graphics
- play sounds
- receive updates about the game from the server
- correct any errors in world data
- draw graphics
- play sounds
- end
- while( true )
- check for and handle new player connections
- check for client commands
- sanity check client commands
- run AI
- move all entities
- resolve collisions
- sanity check world data
- send updates about the game to the clients
- handle client disconnects
- end
- run AI
- move enemies
- resolve collisions
- upload client data to server
- download server updates
- while (game is running)
- {
- get all clients data
- run AI
- resolve collisions
- udpate all clients
- }
- while( user doesn't exit )
- check for user input
- run AI
- send location to server
- get locations from server
- resolve collisions
- draw graphics
- play sounds
- end while
- while(connectedToNetwork)
- Read player location
- Post player location to server
- Read enemy locations from server
- Post enemy locations into shared memory
- while( user doesn't exit )
- check for user input
- run AI
- read/write shared memory
- resolve collisions
- draw graphics
- play sounds
- end while
- while (PlayerConnected)
- Wait for player to post location
- Place new location in shared memory
Add Comment
Please, Sign In to add comment