Merge branch 'main' of ssh://git.egg:2222/NanoYagi/JumpRopeOldTech

This commit is contained in:
yagigreg committed 2026-10-18 00:57:35 -05:00
commit c8ad334936
21 files changed
+296 -22

No files matched your search

+5 -2
View File
@@ -7,8 +7,9 @@ const FRICTION = 100
const GRAVITY_MULT = 0.8
const JUMP_VELOCITY = -410.0
const DASH_LENGTH = 0.2
const BACKGROUND_COLOR = Color.SANDY_BROWN
const BACKGROUND_COLOR = Color.INDIAN_RED
var death_cooldown = 0.0
var fall_timer = 0.0
var teleport_cooldown = 0
var jumps = 0
@@ -93,6 +94,7 @@ func spawn_ghost(ghost_position):
ghost.position = ghost_position
func on_death(instant = false, player_position = position):
death_cooldown += 1
if !instant:
await get_tree().create_timer(0.1).timeout
get_tree().paused = true
@@ -110,6 +112,8 @@ func on_death(instant = false, player_position = position):
#position = %LevelStart.position
position = spawn_point
await get_tree().create_timer(0.1).timeout
death_cooldown = 0
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")):
@@ -210,7 +214,6 @@ func _process(delta: float) -> void:
#get_tree().reload_current_scene()
func _physics_process(delta: float) -> void:
if not is_on_floor():
velocity += (get_gravity() * GRAVITY_MULT) * delta