added more waves

This commit is contained in:
ultrablob 2024-04-25 20:56:12 -04:00
parent 0c0cc1d5f1
commit 1a2b9290c5
16 changed files with 201 additions and 36 deletions

View file

@ -1,13 +1,9 @@
extends Node2D
func _ready():
process_mode = Node.PROCESS_MODE_ALWAYS
func _input(event):
if event.is_action_pressed("restart") and $GameOver/Leaderboard/HTTPRequest.get_http_client_status() == HTTPClient.STATUS_DISCONNECTED:
if event.is_action_pressed("restart") and $"../GameOver/Leaderboard/HTTPRequest".get_http_client_status() == HTTPClient.STATUS_DISCONNECTED:
get_tree().paused = false
get_tree().reload_current_scene()
if event.is_action_pressed("quit") and $GameOver/Leaderboard/HTTPRequest.get_http_client_status() == HTTPClient.STATUS_DISCONNECTED:
if event.is_action_pressed("quit") and $"../GameOver/Leaderboard/HTTPRequest".get_http_client_status() == HTTPClient.STATUS_DISCONNECTED:
get_tree().paused = false
get_tree().change_scene_to_file("res://main_menu.tscn")