Bouncing Ball vs. Evil Circle is a fun and engaging HTML, CSS, and JavaScript game where a ball bounces around the screen, trying to avoid being swallowed by an evil circle. The goal is to survive as long as possible while controlling the ball to evade the evil circle.
- The player controls a bouncing ball that moves across the screen.
- The objective is to avoid being swallowed by the evil circle that roams around the screen.
- The game ends when the ball collides with the evil circle.
- The game speed increases gradually, making it more challenging.
- Ball Movement: The ball bounces off the edges of the screen.
- Evil Circle AI: The evil circle moves around the screen trying to catch the ball.
- Mouse/Keyboard Controls: The player can control the ball using the arrow keys or mouse.
- Game Over Screen: When the ball touches the evil circle, the game ends with a "Game Over" message.
- A modern web browser (e.g., Chrome, Firefox, Safari, etc.) is required to play the game.
-
Clone the repository:
git clone https://github.com/your-username/bouncing-ball-vs-evil-circle.git
-
Navigate to the project directory:
cd bouncing-ball-vs-evil-circle -
Open the
index.htmlfile in your browser to start playing.
- Arrow Keys: Use the arrow keys to control the ball's movement.
- Mouse: Move the mouse to control the ball.
The game uses HTML for structure, CSS for styling, and JavaScript for interactivity. The ball and evil circle are rendered using simple DOM elements and styled using CSS. The movement logic is handled by JavaScript, and collision detection ensures the game ends when the ball is swallowed by the evil circle.
If you'd like to contribute to this project, feel free to fork the repository and submit a pull request. Here's how you can contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-name). - Make your changes and commit them (
git commit -m 'Add feature'). - Push to your forked repository (
git push origin feature-name). - Create a pull request on GitHub.
This project is open-source and available under the MIT License.
- Thanks to MDN Web Docs for helpful resources on JavaScript, CSS, and HTML.
- Inspiration from classic bouncing ball games.
Enjoy the game! 🎮
