you can now bind UI / Menu options to keys in the settings

This commit is contained in:
JHDev2006
2025-09-27 18:38:03 +01:00
parent 7728ccea7b
commit ec803a64a6
11 changed files with 159 additions and 82 deletions

View File

@@ -49,6 +49,7 @@ func update_direction_textures() -> void:
i.frame = int(Track.DIRECTIONS[i.get_index()] == starting_direction)
for i in [$Start, $Connect, $End]:
i.texture = texture
$DirectionArrow.global_rotation = Vector2(connecting_direction).angle()
func on_mouse_entered(area_idx := 0) -> void:
mouse_in_areas |= (1 << area_idx)

View File

@@ -20,7 +20,7 @@ func update_visuals() -> void:
func run_player_check(player: Player) -> void:
if Global.player_action_pressed(get_input_direction(enter_direction), player.player_id) and can_enter:
can_enter = false
Checkpoint.passed = false
Checkpoint.passed_checkpoints.clear()
player.enter_pipe(self, false)
await get_tree().create_timer(1, false).timeout
$CanvasLayer.show()