littel change

This commit is contained in:
沈瑗杰 2020-12-05 23:19:00 +08:00
parent 36e68f3a6b
commit 4a6d0480d8
2 changed files with 1 additions and 7 deletions

View File

@ -16,9 +16,3 @@ def config(file_name, stack=None):
if stack != None:
rd = rd[stack]
return rd
def window_config():
j_config = config("./configs/window.json")
config_r = (j_config)
return config_r

View File

@ -24,7 +24,7 @@ class Game:
def setup(self):
# dic
self.window_c = libs.loads.window_config()
self.window_c = libs.loads.config(".\\configs\\window.json")
# window
self.window = Window(width=int(self.window_c['width']),
height=int(self.window_c['height']),