diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2025-03-10 18:22:09 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2025-03-10 18:22:09 +0100 |
commit | 440020e642f539079867577435a9f8b02075699b (patch) | |
tree | 99acccfc1574a8ffc656d6f64ff934949edb1f52 /start.gd |
Diffstat (limited to 'start.gd')
-rw-r--r-- | start.gd | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/start.gd b/start.gd new file mode 100644 index 0000000..72ac188 --- /dev/null +++ b/start.gd @@ -0,0 +1,14 @@ +extends Control + + +func _ready() -> void: + var tween := create_tween().set_loops() + tween.tween_property($PressStart, "modulate", Color(1.0, 1.0, 1.0, 0.5), 1.0) + tween.tween_property($PressStart, "modulate", Color(1.0, 1.0, 1.0, 1.0), 1.0) + + +func _input(event: InputEvent) -> void: + if event.is_action_pressed("ui_accept"): + await Game.fade_out() + get_tree().change_scene_to_file("res://world.tscn") + Game.fade_in() |