Added spikes, Made a way to transition from level to level, and a base level to make level creation easier
This commit is contained in:
@@ -108,15 +108,12 @@ func multiJump():
|
||||
|
||||
if Input.is_action_just_pressed("move_jump") and canWallJump:
|
||||
var boost = 150
|
||||
print("wall jump")
|
||||
player.velocity.y = jumpHight
|
||||
var wallDirection = player.get_wall_normal().x
|
||||
var direction: float = GameInputEvents.movement_input()
|
||||
if direction == wallDirection:
|
||||
print("boost")
|
||||
player.velocity.x =+ (wallPushBack + boost) * wallDirection
|
||||
else:
|
||||
print("no boost")
|
||||
player.velocity.x =+ wallPushBack * wallDirection
|
||||
currentJumpCount = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user