This is a pet project to try out WebAssembly with Go (golang) in a fun way. The game should be available on my blog. You can also build it and try locally on desktop.
The AI always wins...
- Works on desktop (Linux, MacOS, Windows)
- Works in web browsers using WebAssembly
- 2-player "VS" mode with same keyboard
- Survival-style "AI" mode with unbeatable AI (unless you find a glitch)
- Difficulty/speed increases as you play
First, git clone
and cd
into this repo.
- Run
make native
to build for native desktop (Linux, MacOS, Windows) - Run the game binary:
./build/pong
- Run
make wasm
to build for WASM target - Run the simple web server locally:
go run server/server.go
- Run the game inside a browser at https://localhost:8080
- Make it work on mobile (gomobile compilation targets + touch/drag handling of paddles)
- Add sounds from original Pong game
- Add crazy mode with multiple balls
- Add leaderboard