newest Version as of right now

This commit is contained in:
2025-06-21 06:25:34 +02:00
parent 35d8ece14f
commit 76da17dfbe
40 changed files with 1104 additions and 156 deletions

View File

@ -9,8 +9,13 @@ func enter():
player.velocity.x = 2000 * player.facing_direction # An Wand haften
player.ap.play("wallrun")
player.sprite.position.x = player.facing_direction * -10
func exit():
player.wallrun_timer = 0.0
player.sprite.position.x = 0
player.velocity.y = 0
func update(delta):
pass
@ -21,7 +26,7 @@ func physics_update(delta):
if player.facing_direction > 0 && !player.wallrun_raycast_right2.is_colliding():
Transitioned.emit(self, "PlayerFall")
if player.facing_direction < 1 && !player.wallrun_raycast_left2.is_colliding():
elif player.facing_direction < 1 && !player.wallrun_raycast_left2.is_colliding():
Transitioned.emit(self, "PlayerFall")
elif player.wallrun_timer >= player.wallrun_time:
Transitioned.emit(self, "PlayerWallrunPushoff")