1-There is a class for Basket (ClassBasket.JS), and there is another class for eggs (ClassEgg.JS)
2-There is 2 page
html with 2 page js with same name.
1-Index.html -> get user name and game level
Index.js -> check name user and post data to server then move to Game page
2-Game.html -> the game design
Game.js -> for the starting point of the game in which the object is created and which the game begins.
3-The movement of the basket is controlled with the mouse or the left and right arrow.
4-The game starts with a slow acceleration of eggs falling, as well as the speed of moving the basket, then the speed gradually increases with each time you collect ten more eggs, and the speed of moving the Basket also increases to match the speed of the eggs falling.
5-The player loses if the number of eggs that fell on the ground is more than the number of collected eggs by 20 eggs.
6-The player wins if he collects 100 eggs
7-there is a lottie Animation that appeared at the end of the game when user win or loss