Paths are now relative to runnable script
This commit is contained in:
parent
db2f12846d
commit
e8a8739c9d
@ -11,7 +11,7 @@ class Game:
|
|||||||
print("Loading configuration...", end=" ")
|
print("Loading configuration...", end=" ")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
configFolder = Path("../../data/config/")
|
configFolder = Path("../data/config/")
|
||||||
configFile = configFolder / "mainConfig.json"
|
configFile = configFolder / "mainConfig.json"
|
||||||
|
|
||||||
self.config = json.loads(configFile.read_text())
|
self.config = json.loads(configFile.read_text())
|
||||||
@ -42,6 +42,3 @@ class Game:
|
|||||||
def mainLoop(self):
|
def mainLoop(self):
|
||||||
self.spritesList.draw(self.screen.pygameScreen)
|
self.spritesList.draw(self.screen.pygameScreen)
|
||||||
pygame.display.flip()
|
pygame.display.flip()
|
||||||
|
|
||||||
|
|
||||||
game = Game()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user