This is a simple ball game built with HTML, CSS, and JavaScript.
- Click the button to create a ball.
- Click on the ball to delete it.
- Balls bounce off the edges of the screen and change direction.
- HTML
- CSS
- JavaScript
This game consists of a Ball class that contains methods to create and manipulate balls. The balls are created with random sizes and colors, and they move around the screen, bouncing off the edges and changing direction.
The game uses event listeners to respond to user actions, such as creating and deleting balls. The balls are created with CSS styles, and their movements are controlled using JavaScript.
To run this game, simply open the index.html file in a web browser. I could help to have a local live server
Or you can just visit here: https://emazack.github.io/ball-game/
Some future improvements that could be made to this game include adding more features, such as scores and levels, and improving the ball movement algorithm to make it more realistic. Additionally, the game could be made more visually appealing with better graphics and animations.