Initial commit from game template + some starting work

This commit is contained in:
csd4ni3l
2025-11-27 17:20:24 +01:00
commit 4fc55f4b64
21 changed files with 2017 additions and 0 deletions

8
utils/preload.py Normal file
View File

@@ -0,0 +1,8 @@
import arcade.gui, arcade, os
# 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')
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')))