move source files to separate folders

This commit is contained in:
Antti Hakkarainen 2023-02-18 10:45:19 +02:00
parent e619b9a6df
commit 99b28ecfa3
23 changed files with 34 additions and 34 deletions

28
source/Main.gd Normal file
View file

@ -0,0 +1,28 @@
# https://github.com/dfloer/SC2k-docs
class_name Main
extends Node
var bus:EventBus
func _ready() -> void:
pause_game()
bus = find_child("EventBus")
bus.set_ready()
func pause_game() -> void:
get_tree().paused = true
func unpause_game() -> void:
get_tree().paused = false
func quit_game():
get_tree().get_root().propagate_notification(NOTIFICATION_WM_CLOSE_REQUEST)
get_tree().quit()