Files
Kalulu/sources/minigames/turtles/water.gd
T
2025-06-05 16:43:52 +02:00

15 lines
351 B
GDScript

extends TextureRect
class_name Water
const WATER_RING_SCENE: PackedScene = preload("res://sources/utils/fx/water_ring.tscn")
@export var ring_color: Color
func spawn_water_ring(pos: Vector2) -> void:
var fx: WaterRingFX = WATER_RING_SCENE.instantiate()
fx.position = pos
fx.modulate = ring_color
add_child(fx)
await fx.play()
fx.queue_free()