Tutorial added
This commit is contained in:
parent
cce4d5c049
commit
7c29a35aa7
|
|
@ -48,5 +48,23 @@ position = Vector2(-338, 156)
|
|||
[node name="Node2D" parent="." instance=ExtResource("5_r1egm")]
|
||||
position = Vector2(304, 1266)
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
offset_left = 502.0
|
||||
offset_top = 97.0
|
||||
offset_right = 636.0
|
||||
offset_bottom = 146.0
|
||||
text = "Click and drag to
|
||||
move the rock"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="Label2" type="Label" parent="."]
|
||||
offset_left = 222.0
|
||||
offset_top = 1197.0
|
||||
offset_right = 388.0
|
||||
offset_bottom = 1246.0
|
||||
text = "collect all the crystals
|
||||
to open the exit"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[editable path="player"]
|
||||
[editable path="player/Control"]
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
[ext_resource type="Texture2D" uid="uid://btgsbvc7gidjq" path="res://planetScene/planet.png" id="1_6j83a"]
|
||||
[ext_resource type="Texture2D" uid="uid://cuv6yxysv620e" path="res://planetScene/space-seamless.png" id="1_icdcw"]
|
||||
[ext_resource type="Script" uid="uid://d4crfwu1s5wm1" path="res://planetScene/textureRotate.gd" id="2_dp0ko"]
|
||||
[ext_resource type="Script" path="res://planetScene/textureRotate.gd" id="2_dp0ko"]
|
||||
[ext_resource type="Script" uid="uid://b8kcef36xwy7k" path="res://planetScene/planet_sprite.gd" id="2_jgijx"]
|
||||
[ext_resource type="Texture2D" uid="uid://dimdd34ldpix5" path="res://player/smallPlayer/playerSprites/playerSprite_0001.png" id="3_5cujh"]
|
||||
[ext_resource type="Texture2D" uid="uid://cmga6fl4uer1m" path="res://player/smallPlayer/playerSprites/playerSprite_0002.png" id="4_icdcw"]
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
extends Area2D
|
||||
|
||||
|
||||
var activated: bool = false
|
||||
|
||||
func _ready() -> void:
|
||||
var scoreBar = get_tree().root.find_child("ProgressBar", true, false)
|
||||
scoreBar.connect("complete", Callable(self, "levelComplete"))
|
||||
|
||||
|
||||
func levelComplete():
|
||||
print("active")
|
||||
activated = true
|
||||
print("exit active")
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
|
||||
if activated:
|
||||
get_tree().change_scene_to_file("res://planetScene/planet.tscn")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user