2026-01-14 22:15:18 +11:00
|
|
|
extends Control
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
|
func _ready() -> void:
|
|
|
|
|
PlayerInventory.hide()
|
|
|
|
|
Clock.hide()
|
|
|
|
|
pass # Replace with function body.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
|
|
|
func _process(delta: float) -> void:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _on_play_button_pressed() -> void:
|
2026-01-17 18:06:34 +11:00
|
|
|
PlayerInventory.money = 0
|
|
|
|
|
PlayerInventory.botnet_servers = 0
|
|
|
|
|
PlayerInventory.inventory_panel.empty_grid()
|
|
|
|
|
Clock.days_left = 6
|
|
|
|
|
Clock.time_left = 200
|
|
|
|
|
PlayerInventory.botnet.clear()
|
2026-01-14 22:15:18 +11:00
|
|
|
PlayerInventory.show()
|
|
|
|
|
Clock.show()
|
2026-01-17 13:42:34 +11:00
|
|
|
Locations.show()
|
2026-01-23 15:38:28 +11:00
|
|
|
Locations.goto_ewaste()
|
2026-01-18 02:41:09 +11:00
|
|
|
#Locations.current_location = Locations.Location.workshop
|
|
|
|
|
#get_tree().change_scene_to_file("res://scenes/workshop.tscn")
|
2026-01-17 18:06:34 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
func _on_credits_button_pressed() -> void:
|
|
|
|
|
get_tree().change_scene_to_file("res://scenes/credits.tscn")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _on_menu_button_pressed() -> void:
|
|
|
|
|
get_tree().change_scene_to_file("res://scenes/menu.tscn")
|