mirror of
https://github.com/csd4ni3l/fishy-fingers.git
synced 2026-03-10 08:59:17 +01:00
13 lines
337 B
GDScript
13 lines
337 B
GDScript
extends Sprite2D
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta: float) -> void:
|
|
if get_meta("is_original", false):
|
|
return
|
|
|
|
self.position.x += randf_range(-0.5, 0.5) * Globals.BUBBLE_SPEED * delta
|
|
self.position.y -= Globals.BUBBLE_SPEED * delta
|
|
|
|
if position.y < 0:
|
|
queue_free()
|