tunnel-tunnel/enemy.py
Rosia E Evans 50e4712545 adds game
2024-12-01 16:37:27 +00:00

24 lines
423 B
Python

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")