DOUBLE CLICK THE GREEN FLAG!!! ON PC: Use arrow keys to move. Up arrow to jump. Hold the up arrow to float down when you have a Super Leaf. Press space to throw a fireball when you have a Fire Flower. You can jump high when you have a Frog Suit. If needed, press R to restart the level. ON MOBILE: Tap the right side of the screen to make Mario move right, tap the left side of the screen to make Mario move left, and tap the upper part of the screen to make Mario jump. Tap and hold the upper part of the screen to float down when you have a Super Leaf. Tap the Fire!!! button to throw a fireball when you have a Fire Flower. You can jump high when you have a Frog Suit. If needed, tap Mario to restart the level. THINGS TO KNOW: Dont fall down bottomless pits. Stomp on goombas to defeat them. Fire Flower the goombas, the Piranha Plants, the Pokeys, and the Spinys to defeat them. Getting hit by an enemy will make your health decrease by one, so getting hit by multiple enemies at once will make your health decrease by the number of enemies that hit you. You don't have to touch the items to acquire them, you just have to get close to them. Collect 26 coins to get a 1-up. If you are not already at full health, getting an item will increase your health by one. In the final boss, do not touch the fire balls and spike balls, make your way to the end of the level, and hit the switch.
Thanks to @griffpatch for the ground detection, wall detection, part of the animation script, and the scrolling engine. Otherwise, all art and code is by me. Thanks to Nintendo for the Mario franchise, the sound effects and the music. Credit to the people who made Newer Super Mario Bros. Wii for the music, too. I got the sound effects here: https://themushroomkingdom.net/wav.shtml I got the music from here: https://downloads.khinsider.com/ As requested by @Toadette26, I made the Bowser battle slightly easier.