Bees return nectar, UI stuff
This commit is contained in:
parent
76e7ec7ec7
commit
5865778c77
12 changed files with 175 additions and 17 deletions
|
|
@ -6,8 +6,8 @@ var bee = preload("res://entities/Bee.tscn")
|
|||
@onready var beehive = get_node("../Beehive")
|
||||
|
||||
var bee_count = 0
|
||||
var max_bees = 10
|
||||
var spawn_interval = 3
|
||||
var max_bees = 100
|
||||
var spawn_interval = 0.5
|
||||
var spawn_timer = 0.0
|
||||
|
||||
func _ready():
|
||||
|
|
@ -17,7 +17,6 @@ func spawn_bee():
|
|||
var bee_instance = bee.instantiate()
|
||||
add_child(bee_instance)
|
||||
bee_instance.position = beehive.global_position
|
||||
# bee_instance.connect("bee_died", self, "bee_died")
|
||||
|
||||
func _process(delta):
|
||||
spawn_timer += delta
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue