Score saving, and loading
This commit is contained in:
@ -10,7 +10,7 @@ const enemies = [FORKMAN, COBOLD, ORK]
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
get_node("CanvasLayer/SidePanel").Update_Lifes(20)
|
||||
get_node("CanvasLayer/SidePanel").set_Lifes(20)
|
||||
get_node("CanvasLayer/SidePanel").Update_Coins(2000)
|
||||
|
||||
#the meaning of the columns inside my wave generation matris:
|
||||
@ -31,7 +31,7 @@ func _on_timer_timeout() -> void:
|
||||
if not get_node("Path2D").get_children():
|
||||
endwave = false
|
||||
get_node("CanvasLayer/SidePanel").Update_waves(currentwave + 1) #updating waves
|
||||
if currentwave >= 5:
|
||||
if currentwave >= 4: #!!!!! CHECKS FOR THE LAST WAVE IF NEW WAVES ARE ADDED CHANGE ACCORDINGLY!!!
|
||||
get_node("CanvasLayer/SidePanel").GameWon()
|
||||
else:
|
||||
spawnMonster()
|
||||
|
Reference in New Issue
Block a user