ping-pong
ping-pong copied to clipboard
Retro game pong written in Go and Websocket as transport
ping-pong
ping-pong
tries to be a generic pong implementation, written in Go. It
includes a Canvas engine playable in a browser wit Canvas support.
How to start
To play in the browser with the Canvas engine, download or pull the repository to start the backend server:
$ go run *.go -debug
Then open the frontend at http://127.0.0.1:8080 in your
browser. Alternatively, you can use make
:
$ make play_canvas
How to play
The left player is player one, the right player two. There are two supported inputs available: ↑ moves player one up and ↓ moves him down. Players get points for goals.
API
You can create your own frontend with the provided API, which consists of
constraints and helpers. After you go get
the module, import the engine
package:
import github.com/ndabAP/ping-pong/engine
To get the module:
go get github.com/ndabAP/ping-pong
Future goals
- Native sound generation
- More retro style (e. g. retro GUI)
- AI-controlled player two