level2 compleated
This commit is contained in:
parent
41dc9d98a6
commit
f22ddcb778
|
@ -1,4 +1,6 @@
|
||||||
[gd_scene load_steps=2 format=3 uid="uid://c0h3r0ot5jeds"]
|
[gd_scene load_steps=3 format=3 uid="uid://c0h3r0ot5jeds"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://b2wo3pho6jsk3" path="res://triggers/exit_zone2.gd" id="1_u53oi"]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jhhth"]
|
||||||
size = Vector2(32, 29)
|
size = Vector2(32, 29)
|
||||||
|
@ -7,6 +9,7 @@ size = Vector2(32, 29)
|
||||||
|
|
||||||
[node name="exitZone" type="Area2D" parent="."]
|
[node name="exitZone" type="Area2D" parent="."]
|
||||||
position = Vector2(14, -18)
|
position = Vector2(14, -18)
|
||||||
|
script = ExtResource("1_u53oi")
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="exitZone"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="exitZone"]
|
||||||
position = Vector2(-14, 18)
|
position = Vector2(-14, 18)
|
||||||
|
|
|
@ -12,4 +12,4 @@ func levelComplete():
|
||||||
|
|
||||||
func _on_body_entered(body: Node2D) -> void:
|
func _on_body_entered(body: Node2D) -> void:
|
||||||
if activated:
|
if activated:
|
||||||
get_tree().change_scene_to_file(" ")
|
get_tree().change_scene_to_file("res://planetScene/planetOne/planetOne.tscn")
|
||||||
|
|
|
@ -12,4 +12,4 @@ func levelComplete():
|
||||||
|
|
||||||
func _on_body_entered(body: Node2D) -> void:
|
func _on_body_entered(body: Node2D) -> void:
|
||||||
if activated:
|
if activated:
|
||||||
get_tree().change_scene_to_file("res://planetScene/planet.tscn")
|
get_tree().change_scene_to_file("res://planetScene/planetTwo/planetTwo.tscn")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user