Update actors/ghost.py
This commit is contained in:
@@ -33,4 +33,20 @@ class ActorGhost(pygame.sprite.Sprite):
|
||||
break
|
||||
|
||||
def set_mode(self, mode: GhostMode):
|
||||
self.mode = mode
|
||||
self.mode = mode
|
||||
|
||||
class Blinky(Ghost):
|
||||
def __init__(self, position):
|
||||
super().__init__("Blinky", GhostColor.BLINKY, position, speed=2)
|
||||
|
||||
class Pinky(Ghost):
|
||||
def __init__(self, position):
|
||||
super().__init__("Pinky", GhostColor.PINKY, position, speed=2)
|
||||
|
||||
class Inky(Ghost):
|
||||
def __init__(self, position):
|
||||
super().__init__("Inky", GhostColor.INKY, position, speed=2)
|
||||
|
||||
class Clyde(Ghost):
|
||||
def __init__(self, position):
|
||||
super().__init__("Clyde", GhostColor.CLYDE, position, speed=2)
|
Reference in New Issue
Block a user