From 80189360a5a61a4cec3cfbfd7f4b845a63187a90 Mon Sep 17 00:00:00 2001 From: Tiffany Date: Fri, 27 Mar 2026 13:51:16 -0500 Subject: [PATCH] Added instructions --- control_functions.gd | 15 +++++ control_functions.gd.uid | 1 + control_functions.tscn | 85 ++++++++++++++++++++++++++ instructions.gd | 19 ++++++ instructions.gd.uid | 1 + instructions.tscn | 127 +++++++++++++++++++++++++++++++++++++++ scenes/menu.gd | 4 ++ scenes/menu.tscn | 26 ++++++-- 8 files changed, 273 insertions(+), 5 deletions(-) create mode 100644 control_functions.gd create mode 100644 control_functions.gd.uid create mode 100644 control_functions.tscn create mode 100644 instructions.gd create mode 100644 instructions.gd.uid create mode 100644 instructions.tscn diff --git a/control_functions.gd b/control_functions.gd new file mode 100644 index 0000000..d2d87e6 --- /dev/null +++ b/control_functions.gd @@ -0,0 +1,15 @@ +extends Control + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass + + +func _on_button_pressed() -> void: + get_tree().change_scene_to_file("res://instructions.tscn") diff --git a/control_functions.gd.uid b/control_functions.gd.uid new file mode 100644 index 0000000..d7e82b5 --- /dev/null +++ b/control_functions.gd.uid @@ -0,0 +1 @@ +uid://cghgbbn4g3l7y diff --git a/control_functions.tscn b/control_functions.tscn new file mode 100644 index 0000000..8da1382 --- /dev/null +++ b/control_functions.tscn @@ -0,0 +1,85 @@ +[gd_scene format=3 uid="uid://cbkwf026kdawn"] + +[ext_resource type="Texture2D" uid="uid://3lgdgj4fnmap" path="res://assets/plain_bg.png" id="1_bhctg"] +[ext_resource type="Script" uid="uid://cghgbbn4g3l7y" path="res://control_functions.gd" id="1_rycb2"] + +[node name="ControlFunctions" type="Control" unique_id=1909633195] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_rycb2") + +[node name="PlainBg" type="Sprite2D" parent="." unique_id=1901943666] +position = Vector2(582, 322) +scale = Vector2(0.6125, 0.6203704) +texture = ExtResource("1_bhctg") + +[node name="Label" type="Label" parent="." unique_id=1918537129] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -467.0 +offset_top = -273.0 +offset_right = -154.0 +offset_bottom = -51.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_font_sizes/font_size = 30 +text = "Movement: +[W] = Forward +[A] = Right +[S] = Backwards +[D] = Left" + +[node name="Label2" type="Label" parent="." unique_id=1207179196] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -109.0 +offset_top = -268.0 +offset_right = 414.0 +offset_bottom = -116.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_font_sizes/font_size = 30 +text = "Toggle Mouse Camera = [tab] & [esc]" + +[node name="Label3" type="Label" parent="." unique_id=637923165] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -104.0 +offset_top = -141.0 +offset_right = 225.0 +offset_bottom = 11.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_font_sizes/font_size = 30 +text = "Use powerup = [E]" + +[node name="Button" type="Button" parent="." unique_id=784153193] +layout_mode = 1 +anchors_preset = 2 +anchor_top = 1.0 +anchor_bottom = 1.0 +offset_top = -73.0 +offset_right = 163.0 +grow_vertical = 0 +text = "Return" + +[connection signal="pressed" from="Button" to="." method="_on_button_pressed"] diff --git a/instructions.gd b/instructions.gd new file mode 100644 index 0000000..ddf27d2 --- /dev/null +++ b/instructions.gd @@ -0,0 +1,19 @@ +extends Control + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass + + +func _on_button_pressed() -> void: + get_tree().change_scene_to_file("res://control_functions.tscn") + + +func _on_button_2_pressed() -> void: + get_tree().change_scene_to_file("res://scenes/menu.tscn") diff --git a/instructions.gd.uid b/instructions.gd.uid new file mode 100644 index 0000000..430c2f3 --- /dev/null +++ b/instructions.gd.uid @@ -0,0 +1 @@ +uid://1eruifxei7eh diff --git a/instructions.tscn b/instructions.tscn new file mode 100644 index 0000000..b114b4f --- /dev/null +++ b/instructions.tscn @@ -0,0 +1,127 @@ +[gd_scene format=3 uid="uid://debi6rx7o7o5r"] + +[ext_resource type="Texture2D" uid="uid://3lgdgj4fnmap" path="res://assets/plain_bg.png" id="1_7ls63"] +[ext_resource type="Script" uid="uid://1eruifxei7eh" path="res://instructions.gd" id="1_h8hbf"] + +[node name="instructions" type="Control" unique_id=1188088837] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_h8hbf") + +[node name="PlainBg" type="Sprite2D" parent="." unique_id=1706995682] +position = Vector2(571.5, 331.5) +scale = Vector2(0.6026042, 0.61203694) +texture = ExtResource("1_7ls63") + +[node name="Label2" type="Label" parent="." unique_id=1047919561] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -417.0 +offset_top = -60.0 +offset_right = -67.0 +offset_bottom = 92.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_font_sizes/font_size = 20 +text = "Toggle Mouse Camera = [tab] & [esc]" + +[node name="Label3" type="Label" parent="." unique_id=1419944710] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -393.0 +offset_top = -2.0 +offset_right = -64.0 +offset_bottom = 150.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_font_sizes/font_size = 20 +text = "Use powerup = [E]" + +[node name="Label4" type="Label" parent="." unique_id=1543079494] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -578.0 +offset_top = -324.0 +offset_right = 1986.0 +offset_bottom = -48.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_font_sizes/font_size = 20 +text = "How to Play: +Race around the Wild West to survive until the time is up. +Surviving with 1 life or more starts the next level. + +But watch out! +Stampeding bulls are scattered all around the map. +When they run into you will lose a heart out of three! +" + +[node name="Label5" type="Label" parent="." unique_id=1804900638] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = 91.0 +offset_top = -306.0 +offset_right = 2655.0 +offset_bottom = -30.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_font_sizes/font_size = 20 +text = "Chests are found all around the map. +Within them you'll find power ups. +They include: +- freezing the bulls +- slowing down the bulls +- speeding you up +- umping over parts of the map +- lassoing at the bulls +A money bag allows you to capture bulls." + +[node name="Button" type="Button" parent="." unique_id=2119119474] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -218.0 +offset_top = -88.0 +grow_horizontal = 0 +grow_vertical = 0 +text = "Control Functions" + +[node name="Button2" type="Button" parent="." unique_id=157084413] +layout_mode = 1 +anchors_preset = 2 +anchor_top = 1.0 +anchor_bottom = 1.0 +offset_top = -79.0 +offset_right = 218.0 +grow_vertical = 0 +text = "Return" + +[connection signal="pressed" from="Button" to="." method="_on_button_pressed"] +[connection signal="pressed" from="Button2" to="." method="_on_button_2_pressed"] diff --git a/scenes/menu.gd b/scenes/menu.gd index 5a25045..ad695a0 100644 --- a/scenes/menu.gd +++ b/scenes/menu.gd @@ -8,3 +8,7 @@ func _on_start_pressed() -> void: func _on_exit_pressed() -> void: get_tree().quit() + + +func _on_button_3_pressed() -> void: + get_tree().change_scene_to_file("res://instructions.tscn") diff --git a/scenes/menu.tscn b/scenes/menu.tscn index 7d045a2..10ca47c 100644 --- a/scenes/menu.tscn +++ b/scenes/menu.tscn @@ -1,4 +1,4 @@ -[gd_scene format=3 uid="uid://df7bmyymp1dwu"] +[gd_scene format=3 uid="uid://bvv3q6m42dcqa"] [ext_resource type="Script" uid="uid://de8uj3mc6vmjr" path="res://scenes/menu.gd" id="1_con2f"] [ext_resource type="Texture2D" uid="uid://btso7pevrc1fu" path="res://assets/menuBackground.png" id="2_mhnvy"] @@ -44,10 +44,10 @@ anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -offset_left = -154.0 -offset_top = -30.0 -offset_right = 1119.0854 -offset_bottom = 220.00006 +offset_left = -153.0 +offset_top = -105.0 +offset_right = 1120.0854 +offset_bottom = 145.00006 grow_horizontal = 2 grow_vertical = 2 scale = Vector2(0.24000001, 0.24000001) @@ -74,5 +74,21 @@ scale = Vector2(0.16131614, 0.16131614) theme_override_font_sizes/font_size = 34 theme_override_icons/icon = ExtResource("4_mhnvy") +[node name="Button3" type="Button" parent="." unique_id=767068414] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -142.0 +offset_top = -29.0 +offset_right = 140.0 +offset_bottom = 28.0 +grow_horizontal = 2 +grow_vertical = 2 +text = "Instructions" + [connection signal="pressed" from="Button" to="." method="_on_start_pressed"] [connection signal="pressed" from="Button2" to="." method="_on_exit_pressed"] +[connection signal="pressed" from="Button3" to="." method="_on_button_3_pressed"]