-
Notifications
You must be signed in to change notification settings - Fork 3
/
global_constants.py
59 lines (48 loc) · 1.44 KB
/
global_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
# -*- coding: utf-8 -*-
"""
Created on Sun Nov 24 15:26:54 2019
Global Constants, used everywhere.
Note: The constant bit refers to the naming...
@author: Nuke Bloodaxe
"""
size = width, height = 640, 480 # screen dimensions
# Planet texture constants.
planetHeight = 240 # 120
planetWidth = 480 # 240
# It's certainly not a lively python...
version = "IronPython 0.02 - Frigid Snake Alpha"
# Colours
WHITE = (255, 255, 255)
GREY = (127, 127, 127)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
YELLOW = (255, 255, 0)
VILE_PINK = (255, 0, 255)
ANOMALY = (0, 235, 0)
TECH1 = (50, 50, 0)
TECH2 = (100, 100, 0)
TECH3 = (150, 150, 0)
TECH4 = (200, 200, 0)
TECH5 = (250, 250, 0)
# Font global placeholders, initialized in ironseed.py
font = object
font2 = object
offset = object # for this font.
# Totals for items
totalElements = 17
totalMaterials = 21
totalComponents = 22
totalDevices = 13
totalShields = 14
totalWeapons = 57
totalArtifacts = 911 # Effectively unique items.
maxCargo = totalElements + totalMaterials + totalMaterials + totalComponents
maxCargo += totalDevices + totalShields + totalWeapons + 1
# Game related constants; will be class integrated later.
gameStatus = 0
eventFlags = [] # Having as event list of flags makes things much simpler
systemsVisited = []
starDate = [2, 3, 3784, 8, 75] #M,D,Y,H,M, Default entry here is for new game.
gameDate = object # The game time needs to be accessible everywhere.