I implemented a Flappy Bird style game using Go and the Ebitengine (2D Game Engine), compiled to WebAssembly to run in the browser.
Tech stack:
- Frontend: Go + Ebitengine -> WebAssembly
- Backend: Cloudflare Pages Functions
- Database: Cloudflare D1
Features:
- Daily/weekly/monthly online leaderboards
- Jump history recording and verification to prevent cheating
- Fully serverless architecture to minimize operational costs
Source code: https://github.com/ponyo877/flappy-ranking
This started as an experimental project to create a game in Go and compile it to WebAssembly for browser play. By leveraging Cloudflare's edge computing, I've been able to deploy it globally with low latency.
Feedback and suggestions for improvement are welcome!