Ejemplo n.º 1
0
def kill_monster(monster: Entity) -> Message:
    death_message = Message(f'{monster.name.capitalize()} is dead!',
                            tcod.orange)

    monster.char = '%'
    monster.color = tcod.dark_red
    monster.blocks = False
    monster.fighter = None
    monster.ai = None
    monster.name = f'remains of {monster.name}'
    monster.render_order = RenderOrder.CORPSE
    return death_message
Ejemplo n.º 2
0
def kill_monster(monster: Entity):
    death_message = Message(f"{monster.name.capitalize()} is dead!",
                            Colors.ORANGE)

    monster.char = "%"
    monster.color = Colors.RED
    monster.blocks = False
    monster.fighter = None
    monster.ai = None
    monster.name = f"remains of {monster.name}"
    monster.render_order = RenderLayer.CORPSE

    return death_message
Ejemplo n.º 3
0
def render_entity(t: Terminal, ent: Entity):
        print(ent.color(t.move(ent.y, ent.x) + ent.glyph))
Ejemplo n.º 4
0
def kill_player(player: Entity):
    player.char = "%"
    player.color = Colors.RED

    return Message("You died!", Colors.RED)
Ejemplo n.º 5
0
def kill_player(player: Entity) -> Tuple[Message, GameStates]:
    player.char = '%'
    player.color = tcod.dark_red
    return (Message('You died!', tcod.red), GameStates.PLAYER_DEAD)