mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
13 lines
274 B
GDScript
Executable File
13 lines
274 B
GDScript
Executable File
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)
|