I want to make a food stand game, but very simplified. A mix of memory game and a puzzle
the player will get a picture of a food of sorts (yet to be decided, it will be a sandwich probably) and will have to make said food in the order provided.
the player will have a “inventory” or basically containers with the food items in his cart, once he gets the order of the food he has to make, he needs to, well, make it.
this game will be point based. meaning that for every ingredient he gets right and in the right place he gets a better score, the top score each sandwich is determined by the length of it.
every sandwich the player gets gets bigger by one.
what makes this a memory game is the player gets to see the picture of the sandwich until he moves his mouse, or have it display for a limited amount of time
have a random number generator iterate through the ingredients and make up a an array, each index in the array represents an ingredient. this is the order array
display said sandwich
have an empty array, this is the players array
have an event listener for mouse movement, once the mouse moves stop displaying the order.
have event listeners for every ingredient, each one pressed pushes its name/number into the player array.