35 lines
682 B
Python
35 lines
682 B
Python
from enum import Enum, auto
|
|
|
|
class PlayerDirection(Enum):
|
|
DirectionRight = 0
|
|
DirectionLeft = 180
|
|
DirectionUp = -90
|
|
DirectionDown = 90
|
|
|
|
class GhostDirection(Enum):
|
|
GhostRight = 1
|
|
GhostLeft = 2
|
|
GhostUp = 3
|
|
GhostDown = 4
|
|
|
|
class PillType(Enum):
|
|
PillTypeRegular = 1
|
|
PillTypePower = 2
|
|
|
|
class Colors(Enum):
|
|
Yellow = (255, 255, 0)
|
|
Black = (0, 0, 0)
|
|
Blue = (0, 0, 255)
|
|
Cyan = (0, 255, 255)
|
|
Magenta = (255, 0, 255)
|
|
|
|
class GhostColor(Enum):
|
|
BLINKY = (255, 0, 0)
|
|
PINKY = (255, 184, 255)
|
|
INKY = (0, 255, 255)
|
|
CLYDE = (255, 184, 82)
|
|
|
|
class GhostMode(Enum):
|
|
SCATTER = auto()
|
|
CHASE = auto()
|
|
FRIGHTENED = auto() |