i0nics / super-mario-run

A fun side-scrolling platformer written in Java based on the original Super Mario Run game for iOS!
MIT License
5 stars 1 forks source link

Bonus Treasure Chest Level after Level 3 Completion #4

Open i0nics opened 2 years ago

i0nics commented 2 years ago

The bonus treasure chest level is basically a level in which the player needs to choose one chest from three different chests that may or may not have a power-up in it. This level is only unlocked after the player completes the main three levels. The bonus level locks again after the player chooses a chest and then unlocks again after the player goes through the same three levels.

In order to implement this, a new BonusLevelPane class needs to be created with methods such as Run() which is responsible for calling on other methods. Some other methods that need to be implemented include chestRandomization() which randomly places a random power-up (star or mushroom) inside one of the chests. The various pause, resume, and music methods also need to be implemented. A hasPlayerChosenChest() method needs to be implemented to detect which chest the player has chosen and display whether the player won anything. In the TourPane, a new checkBonusLockStatus() method needs to be written that unlocks the bonus level once the player goes through all three main levels and locks the bonus level when the bonus level is cleared.

i0nics commented 2 years ago

@onzfonz @veasnaling