From 0a52c686562695f08b51d78fd5facdfc440a319a Mon Sep 17 00:00:00 2001 From: csd4ni3l Date: Mon, 17 Nov 2025 16:12:10 +0100 Subject: [PATCH] fix texture loading, remove sound settings --- utils/constants.py | 6 ------ utils/preload.py | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/utils/constants.py b/utils/constants.py index 2a891d9..bdac315 100644 --- a/utils/constants.py +++ b/utils/constants.py @@ -93,12 +93,6 @@ settings = { "VSync": {"type": "bool", "config_key": "vsync", "default": True}, "FPS Limit": {"type": "slider", "min": 0, "max": 480, "config_key": "fps_limit", "default": 60}, }, - "Sound": { - "Music": {"type": "bool", "config_key": "music", "default": True}, - "SFX": {"type": "bool", "config_key": "sfx", "default": True}, - "Music Volume": {"type": "slider", "min": 0, "max": 100, "config_key": "music_volume", "default": 50}, - "SFX Volume": {"type": "slider", "min": 0, "max": 100, "config_key": "sfx_volume", "default": 50}, - }, "Miscellaneous": { "Discord RPC": {"type": "bool", "config_key": "discord_rpc", "default": True}, }, diff --git a/utils/preload.py b/utils/preload.py index 1ab2b85..31f5aaf 100644 --- a/utils/preload.py +++ b/utils/preload.py @@ -7,5 +7,5 @@ _assets_dir = os.path.join(os.path.dirname(_module_dir), 'assets') button_texture = arcade.gui.NinePatchTexture(64 // 4, 64 // 4, 64 // 4, 64 // 4, arcade.load_texture(os.path.join(_assets_dir, 'graphics', 'button.png'))) button_hovered_texture = arcade.gui.NinePatchTexture(64 // 4, 64 // 4, 64 // 4, 64 // 4, arcade.load_texture(os.path.join(_assets_dir, 'graphics', 'button_hovered.png'))) -enemy_texture = arcade.load_texture("assets/graphics/enemy.png") -player_texture = arcade.load_texture("assets/graphics/player.png") \ No newline at end of file +enemy_texture = arcade.load_texture(os.path.join(_assets_dir, 'graphics', 'enemy.png')) +player_texture = arcade.load_texture(os.path.join(_assets_dir, 'graphics', 'player.png')) \ No newline at end of file