Add RulesComponent, GameRulesResource, and BeeDeath state. Update Bee entity with death animation. Include new textures for particles. Add Highlight animation to Beehive.
This commit is contained in:
parent
1da411cacd
commit
d879ca30bd
222 changed files with 3980 additions and 149 deletions
12
entities/scripts/vegetable_patch.gd
Normal file
12
entities/scripts/vegetable_patch.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
extends Node2D
|
||||
class_name VegetablePatch
|
||||
|
||||
@onready var death_box = $DeathBox
|
||||
|
||||
func _ready():
|
||||
death_box.connect("body_entered", Callable(self, "_on_body_entered"))
|
||||
|
||||
func _on_body_entered(area):
|
||||
if area.is_in_group("bee"):
|
||||
area.die()
|
||||
Loading…
Add table
Add a link
Reference in a new issue