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:
1 parent
c3d09c9a88
commit
3b324caf67
15 files changed
+172
-36
No files matched your search
@@ -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