def __init__(self, nickname): Hero.__init__(self, nickname, ad=40, power=5, agility=30, ip=300, hp=100, mp=5000)
def __init__(self): #super is a builtin python function that represents the parent class of #this object (parent class = Creature here). This makes a monster inside #the parent class of creature, with all the properties of creature. Monster.__init__(self) Hero.__init__(self) self.weapon2 = None
def __init__(self, nickname): Hero.__init__(self, nickname, ad=150, power=100, agility=150, ip=1, hp=500, mp=10)
def __init__(self, nickname): Hero.__init__(self, nickname, ad=200, power=20, agility=150, ip=30, hp=200, mp=20)
def __init__(self, color, screen): Hero.__init__(self, color, screen) self.dmg = randint(1, 7) self.hp = randint(1, 8)
def __init__(self): Hero.__init__(self) self.name = '吉安娜' self.power = Firebalt()
def __init__(self): Hero.__init__(self) self.name = '加尔鲁什' self.power = ArmorUp()
def __init__(self): Monster.__init__(self) Hero.__init__(self) self.second_weapon = "none"
def __init__(self): #passing the memory reference of self and calling monster initiation Monster.__init__(self) #passing the memory ref of self and calling hero initiation Hero.__init__(self)
def __init__(self): Hero.__init__(self, pygame.transform.scale(pygame.image.load("assets/dragon/dragon.png").convert_alpha(), (AGRAN_DR[0], AGRAN_DR[1])), POS_INIT_D)
def __init__(self): Hero.__init__(self, pygame.transform.scale(pygame.image.load("assets/mage/anim/run/0.png").convert_alpha(), (AGRAN_M[0], AGRAN_M[1])), POS_INIT_M)