mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
17 lines
452 B
GDScript
17 lines
452 B
GDScript
extends PlayerState
|
|
|
|
func enter(_msg := {}) -> void:
|
|
player.can_hurt = false
|
|
player.has_jumped = false
|
|
player.crouching = false
|
|
player.get_node("CameraCenterJoint/RightWall").set_collision_layer_value(1, false)
|
|
|
|
func physics_update(delta: float) -> void:
|
|
if player.is_posing:
|
|
player.velocity.x = 0
|
|
return
|
|
player.input_direction = 1
|
|
player.can_run = false
|
|
player.normal_state.handle_movement(delta)
|
|
player.normal_state.handle_animations()
|