This is a classic Brick Breaker game developed in JavaScript, utilizing the element for rendering. The game is simple but engaging: destroy all the bricks by bouncing a ball off a paddle, avoiding missing the ball to keep the game going.
Live demo: https://polmuri.github.io/Arkanoid-Game/
-Brick destruction: Break bricks by hitting them with the ball.
-Different brick colors: Bricks are randomly assigned different colors for visual variety.
-Game over state: The game resets if the ball falls below the paddle.
-PC and Mobile support: Play using either a mouse or touch controls.
-On PC: Move the paddle left or right using your mouse. The ball bounces automatically, and your goal is to destroy all the bricks. If the ball falls below the paddle, the game resets.
-On Mobile: Touch and drag your finger on the screen to move the paddle. The paddle will follow the horizontal position of your finger. Just like on PC, avoid letting the ball fall below the paddle.
-HTML5 Canvas: For rendering the game elements (ball, paddle, bricks).
-JavaScript: For game logic and interactivity.
-CSS: For basic styling of the canvas.
-Clone the repository: git clone https://github.com/your-username/brick-breaker-game.git
-Open the project folder and double-click on index.html to run the game in your browser.
Future Improvements
Add levels with increasing difficulty.
Introduce power-ups (e.g., multi-ball, paddle size increase).
Add sound effects and background music.
Track and display a high score.
This game is inspired by the 100 JavaScript Projects by Midudev (https://www.javascript100.dev/). The original project can be found here: https://www.javascript100.dev/02-arkanoid-game
While this game is based on the concepts and structure of Midudev's project, it includes several enhancements and unique features: Made available for mobile devices with touch controls, bricks are painted in different colors for added visual appeal, various additional modifications and refinements.
Enjoy breaking bricks and thanks to Midudev (https://github.com/midudev) !!!