mirror of
https://github.com/csd4ni3l/fleet-commander.git
synced 2026-01-01 04:23:47 +01:00
fix texture loading, remove sound settings
This commit is contained in:
@@ -93,12 +93,6 @@ settings = {
|
|||||||
"VSync": {"type": "bool", "config_key": "vsync", "default": True},
|
"VSync": {"type": "bool", "config_key": "vsync", "default": True},
|
||||||
"FPS Limit": {"type": "slider", "min": 0, "max": 480, "config_key": "fps_limit", "default": 60},
|
"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": {
|
"Miscellaneous": {
|
||||||
"Discord RPC": {"type": "bool", "config_key": "discord_rpc", "default": True},
|
"Discord RPC": {"type": "bool", "config_key": "discord_rpc", "default": True},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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_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')))
|
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")
|
enemy_texture = arcade.load_texture(os.path.join(_assets_dir, 'graphics', 'enemy.png'))
|
||||||
player_texture = arcade.load_texture("assets/graphics/player.png")
|
player_texture = arcade.load_texture(os.path.join(_assets_dir, 'graphics', 'player.png'))
|
||||||
Reference in New Issue
Block a user