Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
VladoCC authored Feb 22, 2021
1 parent 0340813 commit 30aab47
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Pong-Online
Game written in Java using [LibGDX](https://libgdx.com/).

### 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](https://github.com/google/gson) 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](https://www.youtube.com/channel/UCIZ2dFv95v8V61fqsn35PQA), where I'm describing everything about it in more details.

0 comments on commit 30aab47

Please sign in to comment.