def __init__(self, t): self.imagerepo = [pygame.image.load(paths.getImagePath('apple.png'))] Entity.__init__(self) self.target = t self.targinv = t.inventory self.invpos = -665 self.invlock = 0
def __init__(self,t): self.imagerepo=[pygame.image.load(paths.getImagePath('apple.png'))] Entity.__init__(self) self.target = t self.targinv=t.inventory self.invpos = -665 self.invlock = 0
def __init__(self, pos, anim_set): Entity.__init__(self, pos) self.money = 0 self.hp = 25 self.maxhp = 25 self.invpos = -665 self.animator = Animator(anim_set, Animator.MODE_LOOP, 15.0) self.animator.setAnim("idle") self.mouseoffset = 0 self.invdock = False self.inventory = [] #Greater food = More hungry; 100 = Starving; 50 = Indifferent; 0 = Very Full; (0-25 Could possibly give a buff) self.food = 50
def __init__ (self,x,y,color): Entity.__init__(self, x, y) self.color=color
def __init__(self, x, y, color): Entity.__init__(self, x, y) self.color = color