Networking Tests

Colour Matching Game

One of my first programming projects was to create a game in an hour, and I ended up making a colour matching game. A button would have a colour written on it, and it would also be a different colour (eg, it says blue but the colour is green). Every 1-3 seconds the text and colour would randomly change, and if they matched and you clicked the button, you would get a point. If they didn’t match, you’d lose a point.

After learning a bit about networking, I went back and changed it into a networked multiplayer game, with the same rules and a scoreboard.

The embedded video shows the gameplay, with the host window on the left, and the client on the right.

Networked Lobby

For my final programming class, we had a big group game, and part of my role was to set up the networking functionality for the game lobby, as well as networking player movement. The lobby needed to allow for each player to set their own name, and to let the host player select a level from a list. All the clients needed to be able to see other player’s names, as well as see the currently selected level.

Originally I had the currently selected level just listed as text, but then decided to take it a step further and add a preview of the level in the background.

Once you hit start game, you can also see both players are controllable and connected via the network.