Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions control_functions.gd
Original file line number Diff line number Diff line change
@@ -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")
1 change: 1 addition & 0 deletions control_functions.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://cghgbbn4g3l7y
85 changes: 85 additions & 0 deletions control_functions.tscn
Original file line number Diff line number Diff line change
@@ -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"]
19 changes: 19 additions & 0 deletions instructions.gd
Original file line number Diff line number Diff line change
@@ -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")
1 change: 1 addition & 0 deletions instructions.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://1eruifxei7eh
127 changes: 127 additions & 0 deletions instructions.tscn
Original file line number Diff line number Diff line change
@@ -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"]
4 changes: 4 additions & 0 deletions scenes/menu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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")
26 changes: 21 additions & 5 deletions scenes/menu.tscn
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down Expand Up @@ -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)
Expand All @@ -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"]
Loading