mirror of
https://github.com/csd4ni3l/game-of-life.git
synced 2026-01-01 04:23:42 +01:00
fix order of creating settings dict in run.py
This commit is contained in:
14
run.py
14
run.py
@@ -48,6 +48,13 @@ if os.path.exists('settings.json'):
|
||||
vsync = settings['vsync']
|
||||
fps_limit = settings['fps_limit']
|
||||
else:
|
||||
resolution = get_closest_resolution()
|
||||
antialiasing = 4
|
||||
fullscreen = False
|
||||
style = arcade.Window.WINDOW_STYLE_DEFAULT
|
||||
vsync = True
|
||||
fps_limit = 0
|
||||
|
||||
settings = {
|
||||
"music": True,
|
||||
"music_volume": 50,
|
||||
@@ -59,13 +66,6 @@ else:
|
||||
"discord_rpc": True
|
||||
}
|
||||
|
||||
resolution = get_closest_resolution()
|
||||
antialiasing = 4
|
||||
fullscreen = False
|
||||
style = arcade.Window.WINDOW_STYLE_DEFAULT
|
||||
vsync = True
|
||||
fps_limit = 0
|
||||
|
||||
with open("settings.json", "w") as file:
|
||||
file.write(json.dumps(settings))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user