Refactor bee gather state and update game state
Removed unused code in the bee gathering function, enhancing readability. Also added a new boolean variable 'spawn_snails' in the game state reset function to control snail spawning.
This commit is contained in:
parent
908f834181
commit
513b0c92a7
2 changed files with 1 additions and 9 deletions
|
|
@ -16,15 +16,6 @@ func enter(_msg := {}):
|
|||
randomize()
|
||||
target = bee.get_global_position() + Vector2(randi_range(-100, 100), randi_range(-100, 100))
|
||||
|
||||
|
||||
#animator.play("Idle")
|
||||
|
||||
#if !bee.in_range_of_flowers:
|
||||
# ## Go home bee, you're drunk
|
||||
# state_transition.emit(self, "Idle")
|
||||
|
||||
|
||||
|
||||
func update(_delta : float):
|
||||
|
||||
if bee.in_range_of_flowers:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue