Closed wesleychchan closed 1 year ago
Plan:
Later, we can think about animations for the toppings. For now, just spawn them Also, can we get a second sprite for each topping? Just to make them look more random. We will have a random function to select which topping will use which sprite Also if Eva could draw the mushroom sprites it would be nice so the art style is consistent
For the random positions, there are multiple ways to do this. Because we need to translate and rotate the toppings with the pizza, there are quite a few things to consider.
better option found
4 topping sprites (a singular pepperoni, singular sausage, singular green pepper, singular olive) When key to place topping is pressed, a random amount (small range) of that sprite is spawned The sprites spawned have some animation as they fall onto the pizza in random positions (but make sure they are spaced out enough) Once on the pizza, the toppings follow wherever the pizza goes Once the pizza is off the screen, despawn all the toppings While the toppings are falling, other keys cannot be pressed Don't allow multiple of the same topping to be placed on the pizza Overall, topping placement should take under a second to do Need to use a flyweight pattern to render all the toppings without taking too much memory