Exemplo n.º 1
0
 def __init__(self, game, x, y, on_play_mode):
     self.on_play_mode = on_play_mode
     self.groups = game.characters_sprites
     pg.sprite.Sprite.__init__(self, self.groups)
     list_images = [
         'images/player_N2.png', 'images/player_E2.png',
         'images/player_S2.png', 'images/player_O2.png',
         'images/player_NE2.png', 'images/player_SE2.png',
         'images/player_SO2.png', 'images/player_NO2.png'
     ]
     self.previus_action = 0
     Character.__init__(self, x, y, list_images, game, game.player,
                        game.feasible_moves_enemy)
     self.image_broken = pg.image.load('images/explosion.png')
Exemplo n.º 2
0
 def __init__(self, game, x, y, on_play_mode):
     self.groups = game.characters_sprites
     self.on_play_mode = on_play_mode
     pg.sprite.Sprite.__init__(self, self.groups)
     list_images = [
         'images/player_N1.png',
         'images/player_E1.png',
         'images/player_S1.png',
         'images/player_O1.png',
         'images/player_NE1.png',
         'images/player_SE1.png',
         'images/player_SO1.png',
         'images/player_NO1.png'
     ]
     Character.__init__(self, x, y, list_images, game, game.enemy, game.feasible_moves_player, color=LIGHTLIGHTGREY)