You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

52 lines
1.7 KiB

class Settings:
def __init__(self):
self.cacheDir = 'etu-pygame-td'
self.size = 1280, 720
self.gridSize = self.size[1] / 12
self.enemyStart = (0, 1.5 * self.gridSize)
self.enemyPath = [
(15, 1),
(15, 4),
(1, 4),
# Changing pattern here
(1, 10),
(4, 10),
(4, 7),
(7, 7),
(7, 10),
(10, 10),
(10, 7),
(13, 7),
(13, 10),
# Exit labyrinth
(17, 10)
]
# Legend of map:
# 1 = Build spot
# 2 = Non-Build spot
# 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
self.map = [
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], # 0
[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1], # 1
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], # 2
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1], # 3
[1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1], # 4
[1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], # 5
[1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], # 6
[1, 2, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 1, 1, 1], # 7
[1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1], # 8
[1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1], # 9
[1, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2], # 10
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], # 11
]
# Define map colors
self.mapColors = {
1: (0, 134, 6), # Dark green
2: (150, 75, 0), # Dark brown
}