Checkpoints
This commit is contained in:
1 parent
9aa9903b41
commit
df188449f3
4 files changed
+5
-7
No files matched your search
+1
-1
@@ -22,7 +22,7 @@ func _on_interacted() -> void:
|
|||||||
|
|
||||||
var wanted_disk = disks_wanted.front()
|
var wanted_disk = disks_wanted.front()
|
||||||
|
|
||||||
%Player2D.spawn_point = position
|
%Player2D.spawn_point = global_position
|
||||||
|
|
||||||
if not %Player2D.take_disk(wanted_disk):
|
if not %Player2D.take_disk(wanted_disk):
|
||||||
if wanted_disk == 1 and not %Player2D.has_objective("disk%d" % wanted_disk):
|
if wanted_disk == 1 and not %Player2D.has_objective("disk%d" % wanted_disk):
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ size = Vector2(26, 32)
|
|||||||
script = ExtResource("1_mt7kg")
|
script = ExtResource("1_mt7kg")
|
||||||
|
|
||||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1680278216]
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1680278216]
|
||||||
|
position = Vector2(0, -15)
|
||||||
texture = ExtResource("2_mt7kg")
|
texture = ExtResource("2_mt7kg")
|
||||||
|
|
||||||
[node name="Area2D" type="Area2D" parent="Sprite2D" unique_id=2050186824]
|
[node name="Area2D" type="Area2D" parent="Sprite2D" unique_id=2050186824]
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ var teleport_cooldown = 0
|
|||||||
var jumps = 0
|
var jumps = 0
|
||||||
var dashes = 1
|
var dashes = 1
|
||||||
var dashing = false
|
var dashing = false
|
||||||
var death_threshold = 1000
|
var death_threshold = 2000
|
||||||
var coins = 0
|
var coins = 0
|
||||||
var spawn_point
|
var spawn_point
|
||||||
|
|
||||||
|
|||||||
+2
-5
@@ -31,9 +31,6 @@ position = Vector2(-1004, -1335.1945)
|
|||||||
[node name="StartingArea" type="Node2D" parent="." unique_id=130240736]
|
[node name="StartingArea" type="Node2D" parent="." unique_id=130240736]
|
||||||
position = Vector2(-842, -1300.7314)
|
position = Vector2(-842, -1300.7314)
|
||||||
|
|
||||||
[node name="LevelStart" parent="StartingArea" unique_id=2121809777 instance=ExtResource("4_ic0uy")]
|
|
||||||
position = Vector2(-45, -31.508991)
|
|
||||||
|
|
||||||
[node name="LongerBlock" parent="StartingArea" unique_id=426800863 instance=ExtResource("6_dwbse")]
|
[node name="LongerBlock" parent="StartingArea" unique_id=426800863 instance=ExtResource("6_dwbse")]
|
||||||
position = Vector2(-17, -17.72377)
|
position = Vector2(-17, -17.72377)
|
||||||
|
|
||||||
@@ -42,10 +39,10 @@ position = Vector2(-193, -179.20744)
|
|||||||
rotation = 1.5707964
|
rotation = 1.5707964
|
||||||
|
|
||||||
[node name="LongerBlock2" parent="StartingArea" unique_id=75325542 instance=ExtResource("6_dwbse")]
|
[node name="LongerBlock2" parent="StartingArea" unique_id=75325542 instance=ExtResource("6_dwbse")]
|
||||||
position = Vector2(-17, -65.97195)
|
position = Vector2(-17, -79.75723)
|
||||||
|
|
||||||
[node name="Pharaoh" parent="StartingArea" unique_id=1201409437 instance=ExtResource("15_hiqwa")]
|
[node name="Pharaoh" parent="StartingArea" unique_id=1201409437 instance=ExtResource("15_hiqwa")]
|
||||||
position = Vector2(-62, -39.38623)
|
position = Vector2(-62, -24.616333)
|
||||||
|
|
||||||
[node name="Tutorial" type="Node2D" parent="." unique_id=1391494772]
|
[node name="Tutorial" type="Node2D" parent="." unique_id=1391494772]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user