mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
fixed up fireball colisions
This commit is contained in:
@@ -17,8 +17,8 @@ func _physics_process(delta: float) -> void:
|
||||
velocity.y += (15 / delta) * delta
|
||||
velocity.y = clamp(velocity.y, -INF, 150)
|
||||
if is_on_floor():
|
||||
velocity.y = -150
|
||||
if is_on_wall() or is_on_ceiling():
|
||||
velocity.y = -125
|
||||
if is_on_wall() or (abs(get_floor_normal().x) > 0 and is_on_ceiling()):
|
||||
hit()
|
||||
move_and_slide()
|
||||
|
||||
|
Reference in New Issue
Block a user