-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
92 lines (73 loc) · 2.72 KB
/
config.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
84
85
86
87
88
89
90
91
92
""" The game's constants/configuration """
BOARD_WIDTH = 40
BOARD_HEIGHT = 16
# Terrain Tiles
GRASS_TILE = [['#5cb528', '#569e2c', '#54b048'],
['#58b34d', '#40b334', '#54b048'],
['#5cb528', '#5cb528', '#569e2c']]
WATER_TILE = [['#0044ff', '#2d79eb', '#0044ff'],
['#2d79eb', '#0044ff', '#081cfc'],
['#081cfc', '#0044ff', '#2d79eb']]
# main: #0044ff
# darker: #081cfc
# lighter: #2d79eb
# Structure Tiles
ROAD_TILE = [[None, '#4a2912', None],
['#4a2912', '#6b3c1c', '#874f29'],
[None, '#874f29', None]]
CITY_TILE = [[None, '#595858', None],
['#595858', '#595858', '#595858'],
['#595858', '#595858', '#595858']]
# main: #6b3c1c
# darker: #4a2912
# lighter: #874f29
# Unit Tiles
SETTLER_UNIT = [[None, '#528c35', None],
[None, '#dadbd7', None],
[None, None, None]]
# USE THIS HEX IF IT BLENDS INTO THE GRASS: e8e117
WARRIOR_UNIT = [[None, '#eb441e', None],
[None, '#dadbd7', None],
[None, None, None]]
WORKER_UNIT = [[None, '#eda915', None],
[None, '#dadbd7', None],
[None, None, None]]
CLOUD_TILE = [['#010502', '#010502', '#010003'],
['#010101', '#010002', '#000302'],
['#010005', '#030002', '#010503']]
# 7x7 selection outline
OUTLINE_COLOURS = {
'America': '#9999FF',
'Spain': '#FFFF99',
'Russia': '#FF9999',
'Australia': '#CCCCCC',
'China': '#FFCCCC',
'Britain': '#9999FF',
'Germany': '#FF9999'
}
# Default city names
DEFAULT_CITY_NAMES = {
'Spain': ['Madrid', 'Barcelona', 'Valencia', 'Seville', 'Zaragoza', 'Palma', 'Bilbao',
'Alicante', 'Cordova'],
'America': ['Washington', 'New York', 'Philadelphia', 'Boston', 'Baltimore', 'Charleston',
'New Orleans', 'Cincinnati', 'Los Angeles'],
'Russia': ['Moscow', 'St.-Petersburg', 'Sverdlovsk', 'Nizhny', 'Samara', 'Omsk', 'Tatarstan',
'Rostov', 'Chelyabinsk'],
'Australia': ['Sydney', 'Melbourne', 'Brisbane', 'Perth', 'Adelaide', 'Gold Coast', 'Canberra',
'Newcastle', 'Geelong'],
'China': ['Shanghai', 'Beijing', 'Tianjin', 'Guangzhou', 'Shenzhen', 'Dongguan', 'Chongqing',
'Nanjing', 'Nanchong'],
'Britain': ['London', 'Birmingham', 'Liverpool', 'Sheffield', 'Bristol', 'Glasgow', 'Leicester',
'Edinburgh', 'Leeds'],
'Germany': ['Berlin', 'Hamburg', 'Munich', 'Cologne', 'Essen', 'Stuttgart', 'Dortmund',
'Bremen', 'Leipzig'],
}
# Infobox rendering
VIEW_TEXTS = {
'city': 'CITY VIEW',
'unit': 'UNIT VIEW',
'production': 'PRODUCTION VIEW'
}
# Map generation
WATER_COLOUR = (0, 0, 255)
DIFF_THRESHOLD = 230