Record last known ground position. Idea is that when you die you drop the disks at the last place you stood. Doesn't seem to be reliable so I'm not using it at the moment;
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
1 parent
b416cd6d4f
commit
890541465b
1 file changed
+6
@@ -17,7 +17,9 @@ var dashes = 1
|
||||
var dashing = false
|
||||
var death_threshold = 2000
|
||||
var coins = 0
|
||||
|
||||
var spawn_point
|
||||
var last_ground_point
|
||||
|
||||
var data_disks = []
|
||||
var objectives = {}
|
||||
@@ -120,6 +122,10 @@ 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")):
|
||||
get_tree().reload_current_scene()
|
||||
|
||||
if is_on_floor():
|
||||
last_ground_point = global_position
|
||||
#spawn_point = last_ground_point
|
||||
|
||||
if %OldComputer.visible:
|
||||
if Input.is_action_just_released("interact") or Input.is_action_just_released("jump"):
|
||||
%OldComputer.close()
|
||||
|
||||
Reference in new issue
Block a user