mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 23:48:11 +00:00
added the game
This commit is contained in:
14
Scripts/Parts/BubbleParticle.gd
Normal file
14
Scripts/Parts/BubbleParticle.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends Node2D
|
||||
|
||||
var can_kill := false
|
||||
|
||||
func _ready() -> void:
|
||||
await get_tree().create_timer(0.5, false).timeout
|
||||
can_kill = true
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
global_position.y -= 32 * delta
|
||||
if global_position.y < -176:
|
||||
queue_free()
|
||||
elif $WaterDetection.get_overlapping_bodies().is_empty() and can_kill:
|
||||
queue_free()
|
Reference in New Issue
Block a user