fix: level fail error

This commit is contained in:
Kylin_on_Mac
2023-10-19 10:50:30 +08:00
parent e97cc0664d
commit d3247523a3

View File

@ -62,7 +62,7 @@ class EasyGame(PaiaGame):
with open(os.path.join(LEVEL_PATH, "001.json")) as f: with open(os.path.join(LEVEL_PATH, "001.json")) as f:
game_params = json.load(f) game_params = json.load(f)
self._level = 1 self._level = 1
self._level_file = None self._level_file = ""
finally: finally:
# set game params # set game params
self._playground_w = int(game_params["playground_size"][0]) self._playground_w = int(game_params["playground_size"][0])