Exemplo n.º 1
0
 def __init__(self, game):
     config = game.config
     Combatant.__init__(self,
                        game,
                        name='Player',  # for debug purposes
                        avatar=config.player_avatar,
                        color=config.player_color,
                        max_hp=config.player_max_hp,
                        offense=config.player_offense,
                        defense=config.player_defense)
Exemplo n.º 2
0
Arquivo: mobs.py Projeto: jdob/venture
 def __init__(self, game, name, avatar, color, max_hp,
              hp, offense, defense, **kwargs):
     Combatant.__init__(self,
                        game,
                        name=name,
                        avatar=avatar,
                        color=color,
                        max_hp=max_hp,
                        hp=hp,
                        offense=offense,
                        defense=defense)