A fully functioning online matchmaking system made in 2017 using Java, Kryonet and LibGDX, using Rock-Paper-Scissors as an example game
Switch branches/tags
Nothing to show
Clone or download
Mikeywalsh Update README.md
Fixed spelling errors
Latest commit 3aaee67 May 28, 2017

README.md

RpsNet

An online Rock-Paper-Scissors game made in Java using Kryonet and LibGDX, complete with a fully functional matchmaking system! There is a client and a server project.

Client

Users run the client, input the IP address that the server is running on and a player name, and are then connected to the server. From here users can queue up for matchmaking, which is all handled by the server, allocating players to games when it can find a pair of queued players.

Menu screenshot

When ingame, players play a game of rock-paper-scissors against another human opponent. The first to 3 points is declared the winner and players are returned to the menu.

Ingame screenshot

Server

Only one server instance can be run per machine. There are two options for running the server, either straight from the server.jar file, or from the RunServerCmd.bat file. The former will run the server in the background, the latter in a command window, which is recommended.

The server is ran on port 54555-54556, so if you want to be able to connect to clients outside of a LAN, you will have to portforward these ports. Once the server has been launched, clients can connect to it with its IP address, and the server will handle matchmaking and gameplay for any connected clients.

Ingame screenshot