Add rotation change sound effect, add tutorial and also add it to README, fix window title, add statistics label, add custom difficulty

This commit is contained in:
2025-11-08 20:53:25 +01:00
parent 5973d1143f
commit d1b238b239
13 changed files with 146 additions and 17 deletions

View File

@@ -3,6 +3,12 @@ from arcade.types import Color
from arcade.gui.widgets.buttons import UITextureButtonStyle, UIFlatButtonStyle
from arcade.gui.widgets.slider import UISliderStyle
CUSTOM_DIFFICULTY_SETTINGS = [
["source_count", "Source Count", 1, 20],
["house_count", "House Count", 1, 20],
["size", "Size", 3, 30]
]
ROTATIONS = {
"line": ["vertical", "horizontal"],
"corner": ["right_bottom", "left_bottom", "left_top", "right_top"],

View File

@@ -3,6 +3,8 @@ import arcade.gui, arcade
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"))
wire_sound_effect = arcade.Sound("assets/sound/wire.mp3")
TEXTURE_MAP = {
("line", "vertical", True): arcade.load_texture("assets/graphics/powered_lines/line/vertical.png"),
("line", "vertical", False): arcade.load_texture("assets/graphics/unpowered_lines/line/vertical.png"),