move source files to separate folders
This commit is contained in:
parent
e619b9a6df
commit
99b28ecfa3
23 changed files with 34 additions and 34 deletions
28
source/Main.gd
Normal file
28
source/Main.gd
Normal 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()
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue