Skip to content

The Pong game in Go with ebitengine 2D game engine.

License

Notifications You must be signed in to change notification settings

badele/fork-pong

 
 

Repository files navigation

PONG

The first game Pong was developped by Atari in 1972.

Usage - How to play - Features - License

Usage

Clone the project and work with the source or directly go install.

Git clone

# Need to install some library dependencies libGL, libglvnd, mesa, libX11, etc ...
$ git clone https://github.com/joakim-ribier/pong
$ go build -o . ./...

$ ./pong

With nix package manager

nix develop
just build
just run

Go Install

$ go install -v github.com/joakim-ribier/pong/cmd/client@latest

$ ./pong

Binaries

Available only for windows from Releases.

For the others distributions: Is_it_possible_to_cross-compile_an_application_with_Ebitengine

How to play

Singleplayer

# start the game with no option and enjoy it
$ ./pong

Multiplayer

We should have a server which host the game and a client to play with.

The server should start before the client and It's it which handle the whole game.

How to start the server

$ ./pong --server 127.0.0.1:3000

How to start the client

$ ./pong --client 127.0.0.1:3000

Features

Next

...

latest

Create a Pong game with ebitengine 2D engine.

  • Implement a singleplayer mode (Player L VS Player R)
  • Implement a multiplayer mode (Server VS Client) with the [UDP] protocol to exchange messages between the server and the client
  • Add Github workflows to generate binaries

License

This software is licensed under the MIT license, see License for more information.

About

The Pong game in Go with ebitengine 2D game engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.8%
  • Nix 1.9%
  • Just 0.3%