This is a classic Pong game developed using Ebitengine, written in Go. The game includes a simple implementation of a single-player Pong game where the player controls a paddle to bounce the ball.
- Single-player mode: Control a paddle to keep the ball in play.
- Score Tracking: The game keeps track of the player's score.
- High Score: The game tracks and displays the highest score achieved during the session.
- Dynamic Ball Movement: The ball changes direction randomly on each reset.
- Smooth Paddle Control: Use arrow keys to move the paddle up and down.
- Simple Graphics: Rendered using Ebitengine with a customizable background and objects.
-
Clone the repository:
git clone https://github.com/vamshi1188/pongmaster.git cd pongmaster
-
Install dependencies:
- Ensure you have Go installed. You can download it here.
- Install the required Go modules:
go get github.com/hajimehoshi/ebiten/v2 go get golang.org/x/image/font/basicfont
-
Run the game:
go run .
- Control the Paddle: Use the Up Arrow and Down Arrow keys to move the paddle.
- Reset the Game: The game resets automatically when the ball passes the paddle.
- High Score: Try to beat your highest score!
- main.go: Contains the main entry point and the game loop.
- game.go: Manages the game logic including ball movement, collision detection, and scoring.
- paddle.go: Handles paddle movement and input detection.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Multi-player Mode: Add a second paddle for competitive play.
- Power-ups: Introduce power-ups that affect the ball speed or paddle size.
- Sound Effects: Add sound effects for a more engaging experience.
- Difficulty Levels: Implement different difficulty levels with varying ball speeds.