Game5: Multiplayer
Game5 challenges you to build a multiplayer game with a client-server architecture.
Your goal is to start with a fork of the game5 base code and develop a new game which features client-server multiplayer.
What You Need To Do
- [1pt] Tell me what you are making (due by 2pm, Thursday, September 25th) -- use this google form.
- [2pt] Turn in what you made (due before class, Tuesday, October 7th) -- use this google form.
(More on game scoring.)
How To Do It
The challenge of this assignment is in figuring out what the state the server should hold and update and how the clients and server should communicate.
- Fork the base5 code as a starting point.
- Refer to the Networking lesson for high-level guidance.
- Refer to the server.cpp and PlayMode.cpp code for basic usage of the Connection.hpp/Connection.cpp code. (Feel free to replace / re-write Connection if you want, but keep cross-OS compatibility in mind.)
- Fill in the missing sections in
README.md
to document your project; replacescreenshot.png
with a screenshot of your game. (The base code is already set up to capture a screenshot whenever you press thePrintScreen
key.) - Turn in the game using the form linked above.
Restrictions
Use something that's not DrawLines
for your graphics -- you've got a font rendering library from last game and scene graph and mesh loading experience from the game before.
So make a games that doesn't look like the base code!
(DrawLines
is okay for a bit of debug drawing if you need it, of course.)
Not following this restriction will result in a code score of 0pts for the game.