-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.py
43 lines (42 loc) · 1.78 KB
/
defaults.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
class InitialData:
def __init__(self):
self.exportInOneLine = False
self.absolutePacksPathEnabled = True
self.absolutePacksPath = "E:\\web_server\\xampp\\htdocs\\PRIVATE_SERVER\\visual-ts\\project\\visual-ts"
self.relativeMapPath = "\\src\\examples\\platformer-single-player\\scripts\\packs\\"
# self.relativeMapPath = "\\src\\examples\\platformer\\scripts\\packs\\"
self.relativeTexturesPath = "\\src\\examples\\platformer\\imgs\\"
self.relativeTexGroundsPath = "grounds\\"
self.relativeTexEnemiesPath = "enemies\\"
self.relativeTexCollectItemsPath = "collect-items\\"
self.includeAllImages = 1
self.stickler = {}
self.stickler["enabledX"] = True
self.stickler["enabledY"] = True
self.stickler["mod"] = 30
self.gridWidth = 50
self.exportScale = 2
self.baseElementValue = 25
self.ELEMENT_WIDTH = self.baseElementValue
self.ELEMENT_HEIGHT = self.baseElementValue
self.incDecWidth = self.baseElementValue
self.incDecHeight = self.baseElementValue
self.windowBackgroundColor = "#000000"
self.topFrameBColor = "#010233"
self.resourcePreviewFrameBColor = "#f10f33"
self.canvasGridVisible = True
self.canvasScreenCoeficientW = 5
self.canvasScreenCoeficientH = 2
self.autoTile = 1
self.tilesX = 1
self.tilesY = 1
self.rotateValues = False
def redefineExportScale(self, newExportScale):
self.exportScale = newExportScale
print("Redefine init value for exportScale = ", newExportScale)
def setSticklerEnabledX(self):
self.stickler["enabledX"] = not self.stickler["enabledX"]
print("stickler[enabledX]: ", self.stickler["enabledX"])
def setSticklerEnabledY(self):
self.stickler["enabledY"] = not self.stickler["enabledY"]
print("stickler[enabledY]: ", self.stickler["enabledY"])