aboutsummaryrefslogtreecommitdiff
path: root/client/map
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2025-09-28 16:17:00 +0200
committertpart <tpart120@proton.me>2025-09-28 16:17:05 +0200
commit96a3a3c85d2435d358a389e19c6702043a63c85f (patch)
tree7a7cdee9cd66924e676e09dd2d3ee584ce3c7d6a /client/map
parenta335500360c76f5cf5de55c9115489dc71742d06 (diff)
downloadhurrycurry-96a3a3c85d2435d358a389e19c6702043a63c85f.tar
hurrycurry-96a3a3c85d2435d358a389e19c6702043a63c85f.tar.bz2
hurrycurry-96a3a3c85d2435d358a389e19c6702043a63c85f.tar.zst
Add cut particles to cheese
Diffstat (limited to 'client/map')
-rw-r--r--client/map/items/cheese.gd8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/map/items/cheese.gd b/client/map/items/cheese.gd
index 72bde801..0e6d9df7 100644
--- a/client/map/items/cheese.gd
+++ b/client/map/items/cheese.gd
@@ -16,6 +16,14 @@
class_name Cheese
extends Item
+var cut: CPUParticles3D = load("res://map/items/cut.tscn").instantiate()
+
func _init(owned_by_: Node3D):
super(owned_by_)
base.add_child(load("res://map/items/cheese.tscn").instantiate())
+ base.add_child(cut)
+ cut.color = Color("ffc844ff")
+
+func progress(position_: float, speed: float, warn: bool):
+ super(position_, speed, warn)
+ cut.emitting = speed > 0