ping-pong tries to be a generic pong implementation, written in Go. It
includes a Canvas engine playable in a browser wit Canvas support.
To play in the browser with the Canvas engine, download or pull the repository to start the backend server:
$ go run *.go -debugThen open the frontend at http://127.0.0.1:8080 in your
browser. Alternatively, you can use make:
$ make play_canvasThe 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.
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/engineTo get the module:
go get github.com/ndabAP/ping-pong- Native sound generation
- More retro style (e. g. retro GUI)
- AI-controlled player two
