This project is a simple implementation of the classic Breakout game using object-oriented programming in JavaScript.
The game is built using pure JavaScript and HTML5 canvas for rendering. The game logic is encapsulated in a JavaScript file (breakout.js
), which is linked to the HTML file (breakout.html
).
The game board is a 480x320 pixel canvas. The player controls a paddle at the bottom of the screen and tries to bounce a ball against a number of bricks at the top of the screen. The goal is to break all the bricks without letting the ball pass the paddle.
To run the game locally, simply open the breakout.html
file in your web browser. The game will start immediately.
To run the game on GitHub Pages, click the button below:
The game uses Bootstrap for basic styling. The Bootstrap JavaScript bundle is linked in the HTML file via a CDN.
Feel free to fork the project and submit a pull request if you want to make improvements or add new features.