The Block Shooter Game is an interactive game where the player shoots balls at blocks to destroy them. The objective is to prevent the blocks from reaching the end of the screen. The game is built using the p5.js library, providing a fun and engaging gaming experience.
- The game starts with blocks positioned at the top of the screen and a shooter at the bottom.
- The player controls the shooter's angle and shoots balls to destroy the blocks.
- When a ball collides with a block, the block is destroyed, and the player earns points.
- If a block reaches the end of the screen without being destroyed, the player loses the game.
- The game continues until the player successfully clears all blocks or a block reaches the end.
- p5.js
- Clone the project repository to your local machine.
- Make sure you have the latest version of p5.js library installed.
- Open the project files in your preferred code editor.
- Open the
index.htmlfile in a web browser. - The Block Shooter Game will start running.
- Use the controls to adjust the shooter's angle and shoot balls at the blocks.
- Enjoy playing the game and aim to destroy all the blocks.