Skip to content

emazack/ball-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ball Game

This is a simple ball game built with HTML, CSS, and JavaScript.

How to Play

  • 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.

Technologies Used

  • HTML
  • CSS
  • JavaScript

Code Description

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.

How to Run

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/

Future Improvements

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.

About

Exploding ball game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors