Files
PyGame-Tetris/enums.py
2025-04-21 20:33:36 +02:00

19 lines
353 B
Python

from enum import Enum
class BrickColor(Enum):
White = (255, 255, 255)
Red = (255, 0, 0)
Green = (0, 255, 0)
Blue = (0, 0, 255)
Magenta = (255, 0, 255)
Yellow = (255, 255, 0)
Cyan = (0, 255, 255)
class BrickState(Enum):
Current = 0
Next = 1
class BrickDirection(Enum):
Left = 0
Right = 1
Dropped = 2