A simple Pong game implementation written in Go using the Ebiten 2D game engine.
https://github.com/user-attachments/assets/7e848eaf-771c-4607-a519-1f0579049759
← | →: Move bottom paddle left/rightgit clone https://github.com/hammadmajid/paddles.git
cd paddles
go mod download
# From project root
# Run the main entrypoint
go run ./cmd/paddles
Or build and run:
# Build the binary
go build -o paddles ./cmd/paddles
./paddles
assets/ # Embedded assets (fonts, images)
assets.go # Embeds font(s) for use in game
fonts/array/ # Font files
Array-Bold.otf
cmd/paddles/ # Main entrypoint
main.go
internal/config/ # Global game configuration
config.go
internal/objects/ball/ # Ball logic
ball.go
internal/objects/paddle/ # Paddle logic
paddle.go
internal/states/menu/ # Menu screen
menu.go
internal/states/play/ # Play screen
play.go
internal/states/over/ # Game over screen
over.go
go fmt ./...go vet ./...go test ./...This project is open source and available under the MIT License.