diff --git a/godot/Button.gd b/godot/Button.gd new file mode 100644 index 0000000..c3d585a --- /dev/null +++ b/godot/Button.gd @@ -0,0 +1,8 @@ +extends Button + +func _on_pressed(): + get_tree().change_scene_to_file("res://tests/control_scheme/test_basic_controls.tscn") + +func _input(event): + if event.is_action("charge"): + _on_pressed() diff --git a/godot/menu.tscn b/godot/menu.tscn index 4f290b4..d625cb8 100644 --- a/godot/menu.tscn +++ b/godot/menu.tscn @@ -1,4 +1,6 @@ -[gd_scene format=3 uid="uid://bh44tdo8xfqde"] +[gd_scene load_steps=2 format=3 uid="uid://bh44tdo8xfqde"] + +[ext_resource type="Script" path="res://Button.gd" id="1_qv1e3"] [node name="Menu" type="Control"] layout_mode = 3 @@ -28,7 +30,15 @@ offset_right = -152.0 offset_bottom = -122.0 grow_horizontal = 2 grow_vertical = 2 -text = "As you gaze upon an old photograph, you recall an old birthday ruined by a series of rube goldbergian events." +text = "As you gaze upon an old photograph, you recall an old birthday. An otherwise perfect birthday ruined by a series of rube goldbergian events. +You wonder how different your life could have been if you had to power to stop them. After closing your eyes, you find yourself in that photograph. + +Use a gamepad or keyboard and mouse to play. +Space bar to start/stop time +A/D to rewind or fast forward time. + +Flashing objects can be launched towards other objects, transferring your spirit between them." +wrap_mode = 1 [node name="Button" type="Button" parent="ColorRect/TextEdit"] layout_mode = 0 @@ -37,3 +47,6 @@ offset_top = 361.0 offset_right = 562.0 offset_bottom = 392.0 text = "Click here to start" +script = ExtResource("1_qv1e3") + +[connection signal="pressed" from="ColorRect/TextEdit/Button" to="ColorRect/TextEdit/Button" method="_on_pressed"] diff --git a/godot/project.godot b/godot/project.godot index 2fa3ea6..e30c61b 100644 --- a/godot/project.godot +++ b/godot/project.godot @@ -11,7 +11,7 @@ config_version=5 [application] config/name="Hurrmmm" -run/main_scene="res://tests/TAS_system/TAS_test_001.tscn" +run/main_scene="res://menu.tscn" config/features=PackedStringArray("4.1", "C#", "Forward Plus") config/icon="res://icon.svg"