grantas33 / multiplayer-game

Simple Java based online multiplayer game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiplayer 2D Java game

Youtube DEMO http://youtu.be/HUbNPIwcu_4

This repository consists of 2 projects: client side and server side.

Data is shared through TCP and UPD protocols

Client ----> Server | TCP

Server ----> Clients | UDP

Written in Java SE 8.

Running projects

##Server side

To run MultiPlayerServer project you have to pass only one argument -- TCP port.

java -jar serverSide.jar 10000

##Client side

Default lwjgl natives are compatible with LINUX. Change that if you use other OS. Look into lib directory.

To run MultiPlayerClient project you have to pass arguments in such order

  1. IP of server where server side is running
  2. TCP port of server
  3. UDP port through which the game play will be updated (firewalls and router might block incoming traffic) DEFAULT random

Example: If server runs on localhost:

localhost 7896 1234

About

Simple Java based online multiplayer game.


Languages

Language:HTML 60.6%Language:Java 31.3%Language:CSS 6.4%Language:Kotlin 1.3%Language:JavaScript 0.4%