Update game to latest template (build script, etc)

This commit is contained in:
csd4ni3l
2025-12-13 16:17:13 +01:00
parent 6a8345bcd9
commit 701fcfd283
7 changed files with 280 additions and 171 deletions

View File

@@ -1,8 +1,12 @@
import arcade.gui, arcade
import arcade.gui, arcade, os
button_texture = arcade.gui.NinePatchTexture(64 // 4, 64 // 4, 64 // 4, 64 // 4, arcade.load_texture("assets/graphics/button.png"))
button_hovered_texture = arcade.gui.NinePatchTexture(64 // 4, 64 // 4, 64 // 4, 64 // 4, arcade.load_texture("assets/graphics/button_hovered.png"))
# Get the directory where this module is located
_module_dir = os.path.dirname(os.path.abspath(__file__))
_assets_dir = os.path.join(os.path.dirname(_module_dir), 'assets')
theme_sound = arcade.Sound("assets/sound/music.ogg")
click_sound = arcade.Sound("assets/sound/click.wav")
break_sound = arcade.Sound("assets/sound/break.wav")
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')))
theme_sound = arcade.Sound(os.path.join(_assets_dir, "sound", "music.ogg"))
click_sound = arcade.Sound(os.path.join(_assets_dir, "sound", "click.wav"))
break_sound = arcade.Sound(os.path.join(_assets_dir, "sound", "break.wav"))