Assignment in the below link
Pastry Shop
Your pastry shop is having a gigantic sale and a crowd of people want to buy your cookies, brownies, and cakes. The food comes out of three cooking stations next to one another designated for each food type and you must bring each batch to the front counter to be sold. Below is a grid of where everything is.
It would be 888 x 888 px game where each square on the grid represents 37 px. The boxed lightest shade of gray would be where cookies are ready to be brought to the counter which is the corresponding light gray rectangle strip. The boxed slightly darker shade of gray would be where brownies are ready to be brought to the counter which is the corresponding slightly darker gray rectangle strip. The boxed slightly more dark shade of gray would be where cakes are ready to be brought to the counter which is the corresponding slightly more dark gray rectangle strip.
Time left: x seconds
The two darkest rectangle areas are where the players can be in the game, they snap to the area by tapping the up, down, left, right arrow keys each time; immovable if there is no space in the direction key you tap. However, if you tap the up key when there’s a food item ready in the area next to the player piece, it “picks up” the food, and if you tap the down key while you had picked up your food already and you’re next to the counter, it drops the food into the counter to be sold.
Food is prepared at random percentages of 20% chance of cakes to show, 35% chance of brownies to show, and 45% chance of cookies to show. A batch will have a chance of getting burned or inedible and must be left there for 3 seconds to get thrown out, if you bring a burned batch to the counter, you lose a life, you get 10 lives in the game.
Level 1 you must sell 10 cakes, 20 batches of brownies, and 30 batches of cookies in 2 minutes and have a 10% chance of burning.
Level 2 you must sell 15 cakes, 25 batches of brownies, and 35 batches of cookies 90 seconds and 12% chance of burning.
Level 3 you must sell 20 cakes, 25 batches of brownies, and 30 batches of cookies in 75 seconds and 15% chance of burning. You will get overflow but you need to sell them but they won’t count extra toward your total goal for the level.
A level can be repeated as long as you have lives remaining or else it is game over, but you can choose to restart from the beginning. It is also game over when time runs out.
