- This event has passed.
2 PM – Python Object Oriented Programming – Sebastian
September 9, 2023 @ 2:00 pm - 3:00 pm
Today We Did
- Continued Monster System
- Reviewed overall game structure and how the logic has to work
- Began adding inheritance
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Please submit your homework to the corresponding project’s folder in your Google Drive
- Homework: Try adding a new Monster subclass (AKA child class) called “Troll” by closely following how we created Dragon.
- Create a new file for our subclass called “troll.py”
- Make our Troll class & inherit from Monster
- If users attempt to damage trolls with the earth magic attack, print the following:
print(“Troll is immune to earth attack. Therefore, the troll suffer no damage”)
- For any other magic attack, make the troll take damage as usual.