level select menu indicator

This commit is contained in:
Haze Weathers 2024-12-09 14:50:19 -05:00
parent 93656bdcfa
commit 8252ff66b8
4 changed files with 68 additions and 1 deletions

View file

@ -19,6 +19,14 @@ var resolution: Vector2
var current_scene: Node setget change_scene
var last_input_gamepad: bool = true
func _input(event: InputEvent) -> void:
if event is InputEventJoypadButton:
last_input_gamepad = true
elif event is InputEventKey:
last_input_gamepad = false
## change the current scene
func change_scene(new_scene: Node) -> void:
# remove current scene if it exists