From df188449f3e1e842b5962a19255a2bb662174540 Mon Sep 17 00:00:00 2001 From: debugman18 Date: Sat, 17 Oct 2026 22:53:43 -0500 Subject: [PATCH] Checkpoints --- pharaoh.gd | 2 +- pharaoh.tscn | 1 + player_2d.gd | 2 +- world.tscn | 7 ++----- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pharaoh.gd b/pharaoh.gd index 0913420..d0a87fe 100644 --- a/pharaoh.gd +++ b/pharaoh.gd @@ -22,7 +22,7 @@ func _on_interacted() -> void: var wanted_disk = disks_wanted.front() - %Player2D.spawn_point = position + %Player2D.spawn_point = global_position if not %Player2D.take_disk(wanted_disk): if wanted_disk == 1 and not %Player2D.has_objective("disk%d" % wanted_disk): diff --git a/pharaoh.tscn b/pharaoh.tscn index 0b33f8c..2e85a14 100644 --- a/pharaoh.tscn +++ b/pharaoh.tscn @@ -10,6 +10,7 @@ size = Vector2(26, 32) script = ExtResource("1_mt7kg") [node name="Sprite2D" type="Sprite2D" parent="." unique_id=1680278216] +position = Vector2(0, -15) texture = ExtResource("2_mt7kg") [node name="Area2D" type="Area2D" parent="Sprite2D" unique_id=2050186824] diff --git a/player_2d.gd b/player_2d.gd index d29d279..95a77f5 100644 --- a/player_2d.gd +++ b/player_2d.gd @@ -14,7 +14,7 @@ var teleport_cooldown = 0 var jumps = 0 var dashes = 1 var dashing = false -var death_threshold = 1000 +var death_threshold = 2000 var coins = 0 var spawn_point diff --git a/world.tscn b/world.tscn index 34dd62f..ed6cc87 100644 --- a/world.tscn +++ b/world.tscn @@ -31,9 +31,6 @@ position = Vector2(-1004, -1335.1945) [node name="StartingArea" type="Node2D" parent="." unique_id=130240736] 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")] position = Vector2(-17, -17.72377) @@ -42,10 +39,10 @@ position = Vector2(-193, -179.20744) rotation = 1.5707964 [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")] -position = Vector2(-62, -39.38623) +position = Vector2(-62, -24.616333) [node name="Tutorial" type="Node2D" parent="." unique_id=1391494772]