diff options
| author | nokoe <nokoe@mailbox.org> | 2024-07-14 16:01:14 +0200 | 
|---|---|---|
| committer | nokoe <nokoe@mailbox.org> | 2024-07-14 16:01:14 +0200 | 
| commit | d6e23504d7dda9b5e1409d918945fb01796db5a6 (patch) | |
| tree | 59ee78b7fb8a9a2afea45da02fdadb94b266ad7a /client/map/items/bread.gd | |
| parent | 37ac402338ee10c5101ea56e41a5875b72bbd78f (diff) | |
| download | hurrycurry-d6e23504d7dda9b5e1409d918945fb01796db5a6.tar hurrycurry-d6e23504d7dda9b5e1409d918945fb01796db5a6.tar.bz2 hurrycurry-d6e23504d7dda9b5e1409d918945fb01796db5a6.tar.zst | |
bread steam
Diffstat (limited to 'client/map/items/bread.gd')
| -rw-r--r-- | client/map/items/bread.gd | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/client/map/items/bread.gd b/client/map/items/bread.gd index b049b450..b5143c53 100644 --- a/client/map/items/bread.gd +++ b/client/map/items/bread.gd @@ -16,6 +16,19 @@  class_name Bread  extends Item +var steam: CPUParticles3D = preload("res://map/items/steam.tscn").instantiate() +  func _init(owned_by_: Node3D):  	super(owned_by_)  	base.add_child(load("res://map/items/bread.tscn").instantiate()) +	steam.position.y += .1 +	steam.color = Color(.6, .6, .6, .4) +	base.add_child(steam) + +func progress(p: float, warn: bool): +	super(p, warn) +	steam.emitting = warn + +func finish(warn: bool): +	super(warn) +	steam.emitting = false | 
