21 lines
467 B
Python
21 lines
467 B
Python
# define some colors (R, G, B)
|
|
WHITE = (255, 255, 255)
|
|
BLACK = (0, 0, 0)
|
|
DARKGREY = (40, 40, 40)
|
|
LIGHTGREY = (100, 100, 100)
|
|
GREEN = (0, 255, 0)
|
|
RED = (255, 0, 0)
|
|
YELLOW = (255, 255, 0)
|
|
|
|
# game settings
|
|
MAP_SIZE = 6
|
|
TILESIZE = 100
|
|
WIDTH = TILESIZE * MAP_SIZE # 16 * 64 or 32 * 32 or 64 * 16
|
|
HEIGHT = TILESIZE * MAP_SIZE # 16 * 48 or 32 * 24 or 64 * 12
|
|
FPS = 60
|
|
TITLE = "Sweeper Demo"
|
|
BGCOLOR = DARKGREY
|
|
|
|
|
|
GRIDWIDTH = WIDTH / TILESIZE
|
|
GRIDHEIGHT = HEIGHT / TILESIZE |