Breakout

Category:Projects | Posted on:May 18, 2025
breakout

This is a simple Breakout game implemented in JavaScript using the HTML5 Canvas API.

Installation

Clone the repository to your local machine:

git clone https://github.com/k8215/breakout.git

Navigate to the project directory:

cd breakout

Open index.html in your web browser to start the game.

Usage

The game starts automatically when you open index.html in your browser.

  • The player controls a bar that can move laterally.
  • Deflect the ball to break the blocks.
  • The game ends when the ball gets past the player, or all of the blocks are gone.

Controls

  • A: Move left
  • D: Move right
  • Space: Release ball
  • Enter: Restart game (after game over)