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
|
|
@ -1,6 +1,7 @@
|
|||
class_name GameStateManager extends Node
|
||||
|
||||
var level_complete : bool = false
|
||||
var level_complete_time : float = 0.0
|
||||
|
||||
var gathered_nectar : int = 0 :
|
||||
get:
|
||||
|
|
@ -11,11 +12,19 @@ var gathered_nectar : int = 0 :
|
|||
game_win()
|
||||
|
||||
@export var required_nectar : int = 100
|
||||
@export var level_par : int = 2
|
||||
@export var level_text : String = ""
|
||||
|
||||
func add_nectar():
|
||||
gathered_nectar += 1
|
||||
|
||||
func game_start():
|
||||
pass
|
||||
|
||||
func game_win():
|
||||
Log.pr("Game win")
|
||||
level_complete = true
|
||||
# get_tree().paused = true
|
||||
|
||||
func game_lose():
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue