Skip to content

hammadmajid/paddles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paddles

A simple Pong game implementation written in Go using the Ebiten 2D game engine.

Screencast.From.2025-09-03.02-21-58.mp4

Controls

  • ← | →: Move bottom paddle left/right

Requirements

  • Go 1.24.6 or later
  • Dependencies are managed via Go modules

Installation

  1. Clone the repository:

    git clone https://github.com/hammadmajid/paddles.git
    cd paddles
  2. Install dependencies:

    go mod download

Running the Game

# 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

Project Structure

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

Development

  • Format code: go fmt ./...
  • Lint: go vet ./...
  • Test: go test ./...

License

This project is open source and available under the MIT License.

About

Pong but its four paddles.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages