You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add buttons for the player actions (Attack, Defend, Heal, Run) and a text to print the battle messages. Then implement (or reuse) the battle system from the Intro exercise. #4
Player and AI each start with a certain number of hit points (HP). The player's HP should be visible somewhere on the screen.
Attack deals damage to the enemy. Defend negates all incoming damage. Heal increases your own HP.
The enemy can also Attack, or it can Charge. This prints a message that the enemy is charging energy. In the following turn a special attack is unleashed.
Player and AI each start with a certain number of hit points (HP). The player's HP should be visible somewhere on the screen.
Attack deals damage to the enemy. Defend negates all incoming damage. Heal increases your own HP.
The enemy can also Attack, or it can Charge. This prints a message that the enemy is charging energy. In the following turn a special attack is unleashed.