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/Parts/WaterCurrentArea.gd
Executable file
12
Scripts/Parts/WaterCurrentArea.gd
Executable file
@@ -0,0 +1,12 @@
|
||||
extends Node2D
|
||||
|
||||
@export var strength := 3
|
||||
|
||||
func _ready() -> void:
|
||||
$Particles.amount = 32 * scale.x
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
for i in $Hitbox.get_overlapping_areas():
|
||||
if i.owner is Player:
|
||||
for x in strength:
|
||||
i.owner.apply_gravity(delta * 1.5)
|
Reference in New Issue
Block a user