From 440020e642f539079867577435a9f8b02075699b Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 10 Mar 2025 18:22:09 +0100 Subject: initial commit --- start.gd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 start.gd (limited to 'start.gd') 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() -- cgit v1.2.3