It's time to add our game's first power-up: the fireflower. The fireflower is originally from the Mario NES games released ages ago, and by obtaining it, Mario is transformed into red overalls which allow him to shoot fireballs at oncoming Goombas.
We'll be covering:
How to create a fireflower sprite and render it
How to swap Mario's spritesheet when the fireflower is obtained
How to make Mario lose the power-up when hit
How to shoot fireballs when the power-up is active