New checkpoint system

This commit is contained in:
Debugman committed 2026-10-17 22:47:39 -05:00
1 parent 6452b486fc
commit 15367da9b4
4 files changed
+32 -9

No files matched your search

+4 -1
View File
@@ -16,11 +16,13 @@ var dashes = 1
var dashing = false
var death_threshold = 1000
var coins = 0
var spawn_point
var data_disks = []
var objectives = {}
func _ready() -> void:
spawn_point = position
DisplayServer.window_set_title("JUMPS EQUALS JUMPS")
func refresh_dash(new_dashes):
@@ -92,7 +94,8 @@ func on_death(instant = false, player_position = position):
spawn_ghost(player_position)
get_tree().paused = false
position = %LevelStart.position
#position = %LevelStart.position
position = spawn_point
func _process(delta: float) -> void:
if Input.is_action_just_released("restart") or (Input.is_action_pressed("controller_restart_left") and Input.is_action_pressed("controller_restart_right")):