Exemplo n.º 1
0
    def __init__(self, x, y):
        super().__init__(x,
                         y,
                         'T',
                         libtcod.darker_green,
                         'Troll',
                         blocks=True,
                         render_order=RenderOrder.ACTOR)

        Fighter(hp=30, defense=13, power=8, hit=7, xp=100).add_to_entity(self)
        ai.BasicMonster().add_to_entity(self)
Exemplo n.º 2
0
    def __init__(self, x, y):
        super().__init__(x,
                         y,
                         's',
                         libtcod.white,
                         'Skeleton',
                         blocks=True,
                         render_order=RenderOrder.ACTOR)

        Fighter(hp=10, defense=5, power=10, hit=5, xp=25).add_to_entity(self)
        ai.BasicMonster().add_to_entity(self)
Exemplo n.º 3
0
    def __init__(self, x, y):
        super().__init__(x,
                         y,
                         'o',
                         libtcod.desaturated_green,
                         'Orc',
                         blocks=True,
                         render_order=RenderOrder.ACTOR)

        Fighter(hp=20, defense=11, power=4, hit=5, xp=35).add_to_entity(self)
        ai.BasicMonster().add_to_entity(self)
Exemplo n.º 4
0
    def __init__(self, x, y):
        super().__init__(x,
                         y,
                         'B',
                         libtcod.dark_flame,
                         'Balrog',
                         blocks=True,
                         render_order=RenderOrder.ACTOR)

        Fighter(hp=45, defense=16, power=12, hit=11,
                xp=250).add_to_entity(self)
        ai.BasicMonster().add_to_entity(self)
Exemplo n.º 5
0
from entity import Entity

from components import fighter, ai, sprite, location, item

player = lambda: Entity((fighter.Player(), sprite.Player()))

monsters = {
    'orc': lambda: Entity((fighter.Orc(), sprite.Orc(), ai.BasicMonster()))
}

items = {
    'healing_potiont':
    lambda: Entity((item.HealingPotiont(), sprite.HealingPotiont()))
}