def __init__(self, gridPosition): GridAlignedObject.__init__(self, gridPosition, aggregateAnim('sprites/npc', 'boss_idle_f'), 4) self.currentLine = 0 self.dialogues = [ 'Hehehe!', 'Bien joue d\'etre arrive jusqu\'ici.', 'Hihihi! ', 'Mais c\'etait en vain.', 'Tu ne peux pas sauver le monde.', ' Hohoho!', 'Tu es destine a rester dans cette salle jusqu\'a la fin de tes jours...', 'Soit dans pas longtemps', 'Huhuhu!', '' ]
def __init__(self, startingGridPos): GridAlignedObject.__init__( self, startingGridPos, aggregateAnim('sprites/mobs/', 'bat color-swap-purple'), 20) self.move((0, 60))
def __init__(self, startingGridPos): GridAlignedObject.__init__(self, startingGridPos, aggregateAnim('sprites/mobs/', 'slime color swap purple'), 3) self.move((0,50))
def __init__(self, gridPos): GridAlignedObject.__init__(self, gridPos, aggregateAnim('sprites/environment/', 'spring_f0'), 0.001)
def __init__(self, gridPosition): GridAlignedObject.__init__( self, gridPosition, aggregateAnim('sprites/environment/', 'spawnpoint'), 0.001)
def __init__(self, gridPos): GridAlignedObject.__init__( self, gridPos, aggregateAnim('sprites/environment', 'button_Animation 1_0'), 0.001)
def __init__(self, gridPosition): GridAlignedObject.__init__( self, gridPosition, aggregateAnim('sprites/environment/', 'table'), 3)
def __init__(self, gridPos): GridAlignedObject.__init__(self, gridPos, aggregateAnim('sprites/items/', 'coin'), 5)
def __init__(self, gridPosition): rand = random.random() if rand <= 1 / 12.0: GridAlignedObject.__init__(self, gridPosition, aggregateAnim('sprites/npc', 'npc1_f'), 4) elif 1 / 12.0 < rand <= 2 / 12.0: GridAlignedObject.__init__(self, gridPosition, aggregateAnim('sprites/npc', 'npc2'), 4) elif 2 / 12.0 < rand <= 3 / 12.0: GridAlignedObject.__init__(self, gridPosition, aggregateAnim('sprites/npc', 'npc3'), 4) elif 3 / 12.0 < rand <= 4 / 12.0: GridAlignedObject.__init__(self, gridPosition, aggregateAnim('sprites/npc', 'npc4'), 4) elif 4 / 12.0 < rand <= 5 / 12.0: GridAlignedObject.__init__(self, gridPosition, aggregateAnim('sprites/npc', 'npc5'), 4) elif 5 / 12.0 < rand <= 6 / 12.0: GridAlignedObject.__init__(self, gridPosition, aggregateAnim('sprites/npc', 'npc6'), 4) elif 6 / 12.0 < rand <= 7 / 12.0: GridAlignedObject.__init__(self, gridPosition, aggregateAnim('sprites/npc', 'npc7'), 4) elif 7 / 12.0 < rand <= 8 / 12.0: GridAlignedObject.__init__(self, gridPosition, aggregateAnim('sprites/npc', 'npc8'), 4) elif 8 / 12.0 < rand <= 9 / 12.0: GridAlignedObject.__init__(self, gridPosition, aggregateAnim('sprites/npc', 'npc9'), 4) elif 9 / 12.0 < rand <= 10 / 12.0: GridAlignedObject.__init__(self, gridPosition, aggregateAnim('sprites/npc', 'npc10'), 4) elif 10 / 12.0 < rand <= 11 / 12.0: GridAlignedObject.__init__(self, gridPosition, aggregateAnim('sprites/npc', 'npc11'), 4) elif 11 / 12.0 < rand: GridAlignedObject.__init__(self, gridPosition, aggregateAnim('sprites/npc', 'npc12'), 4)
def __init__(self, gridPosition, facing = 0):#0=up, 1=left, 2=down, 3= right GridAlignedObject.__init__(self, gridPosition, self.__spinList(aggregateAnim('sprites/environment/', 'spike_f0'), facing), 0.001) self.facing = facing
def animate(self, clocktick): if (not self.isInTempAnim) and random.random() > 0.999: self.changeAnimationTemp(self.__spinList(aggregateAnim('sprites/environment/', 'spike'), self.facing), 10) GridAlignedObject.animate(self, clocktick)