-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgamePaths.py
More file actions
49 lines (33 loc) · 1.98 KB
/
Copy pathgamePaths.py
File metadata and controls
49 lines (33 loc) · 1.98 KB
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
import sys
from os import path
class PathHolder:
def __init__(self):
self.resources = path.abspath(path.join(".", "resources"))
self.iconPath = path.join(self.resources, "icon.png")
self.imagesPath = path.join(self.resources, "images")
self.scorePath = path.join(self.imagesPath, "score")
self.scoreBasePath = path.join(self.scorePath, "score@2x.png")
self.shaderPath = path.join(".", "shaders")
self.vertexPath = path.join(self.shaderPath, "vertex.shader")
self.fragmentPath = path.join(self.shaderPath, "fragment.shader")
self.defaultShaderPaths = (self.vertexPath, self.fragmentPath)
self.blurVertexPath = path.join(self.shaderPath, "blurvertex.shader")
self.blurFragmentPath = path.join(self.shaderPath, "blurfragment.shader")
self.blurShaderPaths = (self.blurVertexPath, self.blurFragmentPath)
self.uiVertexPath = path.join(self.shaderPath, "UIvertex.shader")
self.uiFragmentPath = path.join(self.shaderPath, "UIfragment.shader")
self.uiShaderPaths = (self.uiVertexPath, self.uiFragmentPath)
self.fontsPath = path.join(self.resources, "fonts")
self.allerPath = path.join(self.fontsPath, "Aller")
self.mainFont = path.join(self.allerPath, "Aller_Lt.ttf")
self.mainFont2 = path.join(self.allerPath, "Aller_Rg.ttf")
self.musicPath = path.join(self.resources, "music")
self.oldMP3Files = path.join(self.musicPath, "oldMP3Files")
self.songPath = path.join(self.musicPath, "LetTheWindTellYou.wav")
self.ffmpegPath = path.join(self.resources, "ffmpeg")
if sys.platform == "win32":
self.converterPath = path.join(self.ffmpegPath, "ffmpeg.exe")
self.ffmpegPath = path.join(self.ffmpegPath, "ffmpeg.exe")
elif sys.platform == "darwin":
self.converterPath = path.join(self.ffmpegPath, "ffmpeg")
self.ffmpegPath = path.join(self.ffmpegPath, "ffmpeg")