+ 1
Monster class example
here's the monster class of the RPG I will program after the python track. Square trembles... https://code.sololearn.com/cfh9N7KXmwfO/?ref=app
3 odpowiedzi
+ 6
Cool! How about creating some methods for combat (turn-based)? 😁
+ 6
Stefano Marzo You're in the right way! Keep it up 😉
+ 1
I remember I've tried once. but it was a class that takes player a monster as arguments. then has methods for attack and defence. like a Def with a while that ends when hp was zero, in the meantime it came attack functions that modify the player or monster hp. I will try to code It when I'll finish the OOP lesson.