mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
added the game
This commit is contained in:
12
Scripts/Classes/States/Player/LevelExit.gd
Normal file
12
Scripts/Classes/States/Player/LevelExit.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
extends PlayerState
|
||||
|
||||
func enter(_msg := {}) -> void:
|
||||
player.has_jumped = false
|
||||
player.crouching = false
|
||||
player.get_node("CameraCenterJoint/RightWall").set_collision_layer_value(1, false)
|
||||
|
||||
func physics_update(delta: float) -> void:
|
||||
player.input_direction = 1
|
||||
player.can_run = false
|
||||
player.normal_state.handle_movement(delta)
|
||||
player.normal_state.handle_animations()
|
Reference in New Issue
Block a user