Coins
This commit is contained in:
1 parent
e440224fd8
commit
19bbb052ad
9 files changed
+108
-1
No files matched your search
+2
-1
@@ -10,6 +10,7 @@ var fall_timer = 0.0
|
||||
var teleport_cooldown = 0
|
||||
var jumps = 0
|
||||
var death_threshold = 1000
|
||||
var coins = 0
|
||||
|
||||
func _ready() -> void:
|
||||
pass
|
||||
@@ -50,7 +51,7 @@ func _process(delta: float) -> void:
|
||||
else:
|
||||
velocity.x = move_toward(velocity.x, 0, SPEED)
|
||||
|
||||
print("PLAYER X POSITION: " + str(position.y))
|
||||
#print("PLAYER X POSITION: " + str(position.y))
|
||||
if position.y >= death_threshold:
|
||||
print("SLASH KILL")
|
||||
get_tree().reload_current_scene()
|
||||
|
||||
Reference in new issue
Block a user