mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
9 lines
257 B
GDScript
9 lines
257 B
GDScript
extends PowerUpItem
|
|
|
|
func on_area_entered(area: Area2D) -> void:
|
|
if area.owner is Player:
|
|
AudioManager.play_sfx("clock_get", global_position)
|
|
$Label/AnimationPlayer.play("Appear")
|
|
Global.time = clamp(Global.time + 100, 0, 999)
|
|
Global.score += 1000
|