-
Notifications
You must be signed in to change notification settings - Fork 1
/
Constants.py
83 lines (69 loc) · 2.1 KB
/
Constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
TIMEOUT = 1
N_TURNS = 2500
BIKE_1_SYMBOL = "1"
BIKE_2_SYMBOL = "2"
EMPTY = "."
NITRO = 'N'
RESET = 'R'
TRAVERSER = 'T'
POWER_UP_SYMBOLS = (NITRO,
RESET,
TRAVERSER)
LOG_FILE = "log.txt"
HTML_FILE = "log.html"
TRAVERSER_CAPACITY = 10
NITRO_QUANTITY = 30
NORTH = (0, -1)
SOUTH = (0, 1)
EAST = (1, 0)
WEST = (-1, 0)
##################################
# #
# +----------------------> x #
# | #
# | north #
# | ^ #
# | | #
# | | #
# | west <-----+-----> east #
# | | #
# | | #
# | V #
# V south #
# #
# y #
# #
##################################
# Constants related to game display
GOLD = 'G'
WALL = '#'
EMPTY = '.'
DEAD_SYMBOL = 'D'
TRAIL1 = 'X'
BULLET1 = 'A'
TRAIL2 = 'Y'
BULLET2 = 'B'
RESET_BULLET = 'K'
MAP_SIZE = 50
ASCII_CHARS = 128
MAX_CLASS_NAME_LENGTH = 10
DELAY = 100
DELAY_STEP = 30
MIN_DELAY = 5
MAX_DELAY = 1000
END_SCORE_CHAR = '$'
# Colour variables
GOLD_COLOUR = "goldenRod"
WALL_COLOUR = "#444444"
EMPTY_COLOUR = "black"
DEAD_COLOUR = "red"
BIKE_1_SYMBOL_COLOUR = "#008000"
NITRO_COLOUR = "#55ee55"
BULLET1_COLOUR = "black"
BIKE_2_SYMBOL_COLOUR = "#ff00aa"
TRAVERSER_COLOUR = "#ff0044"
BULLET2_COLOUR = "black"
RESET_COLOUR = "blue"
RESET_BULLET_COLOUR = "black"
TEXT_COLOUR = "#aaaaaa"
BKG_COLOUR = "black"