The main objective of this game is to save the princess from the evil castle! On your treacherous journey to the castle, you will face many random monsters that must be defeated! In order to save the princess and win the game, you must reach level 20 and defeat the final boss! However, if you die to any monster, you lose and you must start from the beginning! Not only can monsters kill you, but also chests! You can chose between 2 chests at the end of each battle. The first chest is guarenteed to give you experience points, which you need to level up! However, the second chest has a 50% chance of losing 75% of your hp for the next battle, and a 50% chance of gaining 2 levels!
Words you must be familiar with:
HP - Health / Health Points
EXP - Experience Points (They help you gain levels)
Input |
Processing |
Output |
---|---|---|
- The player's name - Their desired attack method in a battle - The chest they would like to select after defeating an enemy |
- Alert the player of a backstory - Ask for the player's name -Calculate a random whole number from 1 - 10 - Based on that whole number, determine the enemy that will fight the player - Calculate another random whole number from 1 - 10 - This number will determine the chance of a critical hit after the player selects a move - Calculate another random whole number from 1 - 10 - This number will determine the chance of what items you get from the chest after beating an enemy - The player could either gain experience points from the chest, or an extra life, or they could die and get a game over - If they get enough experience points, the player’s level will go up - If they get an extra life, the next time the player loses a battle they will survive and fight a new enemy - If they die, they lose the game, and must restart if they wish to keep playing - After the chest is opened, they will continuously fight other enemies - Once the player has gotten to level 99, they win the game |
- The player will be told a backstory of the land they must save - The player will fight a monster - The battle will be turn-based - Once the battle is finished, the player picks a chest - The player either gains experience points, gets an extra life, or dies - If the player manages to get to level 99, they win - If the player dies, they lose |