Skip to content

Multiplayer Pong game built on Java using LibGDX and custom TCP protocol

Notifications You must be signed in to change notification settings

VladoCC/Pong-Online

Repository files navigation

Pong-Online

Game written in Java using LibGDX.

What's this?

This is a multiplayer clone of classic game of Pong.
Server-side of this project supports multiple sessions of the game at the same time with lobby feature, which lets player choose a game to connect.

How's it working?

All of the client-server interactions is built upon custom high-level TCP protocol, which uses serialization courtasy of Gson library and Java reflections to send commands through the network as serialized objects.
This protocol is capable of sending data from one side of connection to another. It is able to send "executable code", while keeping connection safe. This is possible by sending class names through the networkinsted of code and use sent data to restore an object of this class. In this way, you can decide from one side what code you want to execute on another, but it'd be executed if and only if other side of your connection has a class, code of which you want to execute.
And the whole point about sanitizing received data comes to keeping track of what types of command are included into your application.

Where can I find more information about this game and network protocol?

You can find video about creation process of this game on my YouTube channel, where I'm describing everything about it in more details.

About

Multiplayer Pong game built on Java using LibGDX and custom TCP protocol

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages