Task description: Create a basketball court with a moving ball and scoreboard. By default, the ball position should be at the center of the court. Below the basketball court should be a scoreboard with the current score of team A and team B. If you click somewhere on the court the ball goes to that position. There is a basketball backboard with the hoop on each side of the court. You should establish a scoring zone there (15x15px). If you click on that zone, should be dispatched a custom event, that handled by notification. The scoreboard should show a notification message, with the team, that scores that goal and change the current score. After the 3 seconds, notifications should fade away.
-
Notifications
You must be signed in to change notification settings - Fork 0
My practice with JS DOM events
JuuRousse/basketball-game
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
My practice with JS DOM events