tunnel-tunnel/enemy.py

25 lines
423 B
Python
Raw Normal View History

2024-12-01 16:37:27 +00:00
class Enemy:
def __init__(self, char):
self.char = char
self.key = char
class Empty(Enemy):
def __init__(self):
super().__init__(" ")
self.char = "-"
class Goblin(Enemy):
def __init__(self):
super().__init__("o")
class Slime(Enemy):
def __init__(self):
super().__init__("e")
class KnifeRat(Enemy):
def __init__(self):
super().__init__("c")