- This event has passed.
9 AM – Intro To Java – Gamas
July 16, 2022 @ 9:00 am - 10:00 am
Homework:
- Continue on Monster Inheritance project. We want to add magic attack menu now like below
-
Please select from one of the following 1. Add new monster 2. List all monsters 3. Play the game Enter your selection (enter "exit" to quit):3 What is your name: Gamas How much health you want: 100 Gamas has 100 health remaining. Please select one of the following monsters: - troll - 50 health - dragon - 100 health - Water Golem - 30 health Enter your selection (Enter 'stop' to end the game): troll What do you want to do with the troll: 1. Magic attack 2. Melee attack 3. Arrow attack (5 -10 damage) 4. Heal Enter your selection:1 What kind of magic attack you want to do to troll: 1. Fire magic - 10 damage 2. Water magic - 10 damage 3. Earth magic - 12 damage 4. Wind magic - 8 damage Enter your selection:1 You attacked TROLL with 10 attack. The TROLL has 40 health remaining. TROLL attacked Gamas and did 13 damage