Added button on the PlayScratt file to play level

yeah that part was not in the previous commit
lol
main
tihgs 2025-06-19 16:27:31 +08:00
parent 2da13d1360
commit 5fbe9d90ac
Signed by: tihgs
GPG Key ID: 4E80959CDE5EDCA0
2 changed files with 12 additions and 2 deletions

View File

@ -12,9 +12,16 @@ margin_right = 499.0
margin_bottom = 283.0
rect_scale = Vector2( 2, 2 )
[node name="Back" type="Button" parent="VBoxContainer"]
[node name="PlayPlay" type="Button" parent="VBoxContainer"]
margin_right = 132.0
margin_bottom = 20.0
text = "Play a game"
[node name="Back2" type="Button" parent="VBoxContainer"]
margin_top = 24.0
margin_right = 132.0
margin_bottom = 44.0
text = "Back"
[connection signal="pressed" from="VBoxContainer/Back" to="." method="_on_Back_pressed"]
[connection signal="pressed" from="VBoxContainer/PlayPlay" to="." method="_on_PlayPlay_pressed"]
[connection signal="pressed" from="VBoxContainer/Back2" to="." method="_on_Back_pressed"]

View File

@ -24,3 +24,6 @@ func _on_Estartos_pressed():
func _on_Back_pressed():
get_tree().change_scene("res://main_menu.tscn")
func _on_PlayPlay_pressed():
get_tree().change_scene("res://level_juan.tscn")