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...
Features
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
Build locally
First, git clone and cd into this repo.
Native desktop version
Run make native to build for native desktop (Linux, MacOS, Windows)
Run the game binary: ./build/pong
WebAssembly version (browser)
Run make wasm to build for WASM target
Run the simple web server locally: go run server/server.go