DreamBall/elements/ring.gd
Taevas f7e85724b3 reduce video memory usage by orders of magnitude
big fonts use lots of big lumalpha8, so just scale up small fonts
2025-03-25 23:18:33 +01:00

14 lines
356 B
GDScript

class_name Ring
extends CSGTorus3D
var happy_material = preload("res://graphics/happy_material.tres")
var collected = false
signal collect_signal
func _on_area_3d_body_entered(body: Node3D) -> void:
if collected == false and body.name == "Sphere":
self.material = happy_material
collected = true
$AudioStreamPlayer.play()
collect_signal.emit()