Brick Breaker

A simple Brick Breaker game implemented in Java using Graphics2D and Swing.

Overview

This project is a classic arcade-style game where the player controls a paddle to bounce a ball and break bricks. The game features a graphical user interface created with Java's Swing library, and the rendering is handled using Graphics2D for smooth and interactive gameplay.

Features

  • Interactive Gameplay: Control the paddle using keyboard input to bounce the ball and break bricks.
  • Collision Detection: collision detection ensures accurate ball and paddle interactions.
  • Map Generation: Dynamic creation of game maps with configurable rows and columns.
  • Graphics2D Rendering: Utilizes Java's Graphics2D for rendering graphics and creating a visually appealing interface.
  • Scoring: Track and display the player's score as they break bricks.

How to Play

  1. Launch the Game: Run the main class to start the game.
  2. Control the Paddle: Use the left and right arrow keys to move the paddle.
  3. Break Bricks: Bounce the ball off the paddle to break the bricks and earn points.
  4. Winning: Clear all the bricks to win the game.

Gameplay

BrickBreakerExample