Add high scores level with specific settings, new resources for images and textures, update project configuration to include HighScoreMgr, and define style boxes for game theme.

This commit is contained in:
Dan 2024-05-11 13:53:04 +01:00
parent 3eaa959910
commit 115b4b0a69
22 changed files with 821 additions and 12 deletions

View file

@ -12,7 +12,7 @@ var gathered_nectar : int = 0 :
return gathered_nectar
set(value):
gathered_nectar = value
if gathered_nectar > required_nectar:
if gathered_nectar > required_nectar and !level_complete:
game_win()
@export var required_nectar : int = 100
@ -52,6 +52,7 @@ func game_start():
func game_win():
Log.pr("Game win")
level_complete = true
HighScoreMgr.add_honey(gathered_nectar)
# get_tree().paused = true
func game_lose():