Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m0rningdawning/online-pong

2D online Pong clone created in Java that features a fully functional local (on the same machine) mode as well as LAN multiplayer.
https://github.com/m0rningdawning/online-pong

game java lan multiplayer online pong-game

Last synced: about 1 month ago
JSON representation

2D online Pong clone created in Java that features a fully functional local (on the same machine) mode as well as LAN multiplayer.

Awesome Lists containing this project

README

        

# online-pong
2D online Pong clone created in Java that features a fully functional local (on the same machine) mode as well as LAN multiplayer.

![GitHub language count](https://img.shields.io/github/languages/count/m0rningdawning/online-pong)
![GitHub top language](https://img.shields.io/github/languages/top/m0rningdawning/online-pong)
![GitHub last commit](https://img.shields.io/github/last-commit/m0rningdawning/online-pong)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)

## Setup

1. Open `sdk` folder and run `InstallSDK.bat`.

2. Wait until the installation is finished.

3. Start `online-pong.jar`.

## How to play

### Local

1. Press `PLAY`.

- P1: `W` - Up, `S` - Down.

- P2: `ArrowUP` - Up, `ArrowDown` - Down.

2. Press `Space` when ready to start playing.

### LAN

- Press `PLAY ONLINE`.

#### Host

1. `Do you want to run a server?` select `Yes`.

2. `Do you want to run a public server?` select `No`.

3. Enter a port in a safe range. E.G. 50000.

4. Share the IP and the port number with Client and wait for him to connect.

5. Press `Space` when ready to play.

#### Client

1. `Do you want to run a server?` select `No`.

2. Enter the port and the IP of the server.

3. Press `Space` when ready to play.

## Statistics

- Offline statistics can be viewed in the `stats` folder in `offlineStats.json`.

- Online statistics can be viewed in the `stats` folder in `onlineStats.json`.

## Preview
![image](https://github.com/m0rningdawning/online-pong/assets/102054245/367cfc27-9518-45b1-8a28-9bba59e0e44c)
![image](https://github.com/m0rningdawning/online-pong/assets/102054245/ccc80aa2-3a60-4083-9c9b-2deea15042bd)
![image](https://github.com/m0rningdawning/online-pong/assets/102054245/dbb04583-5659-4d36-917a-92a2c05c1073)

## Credits
App Icon:
- https://www.flaticon.com/free-icon/ping-pong_1687539?term=ping+pong&page=1&position=50&origin=tag&related_id=1687539

Background:
- https://opengameart.org/content/space-star-background

Fonts:
- https://fonts.google.com/specimen/Monoton
- https://www.1001fonts.com/hello-denver-display-font.html

Ball and Platforms:
- https://opengameart.org/content/pong-graphics

SFX:
- https://free-loops.com/7033-ping-pong-.html
- https://www.youtube.com/watch?v=3sGatRdAeJ0&list=PPSV
- https://orangefreesounds.com/game-over-ident/