paddles

Paddles

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

Controls

Requirements

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

License

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