mirror of
https://git.tonybark.com/tonytins/legendsonline.git
synced 2025-12-16 23:04:42 -05:00
Initial commit
This commit is contained in:
commit
cd3ef1c3da
14 changed files with 497 additions and 0 deletions
15
project/source/GameKit.gd
Normal file
15
project/source/GameKit.gd
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
extends Node
|
||||
|
||||
const NOT_IMPLEMENTED = "This feature is not implemented"
|
||||
|
||||
func is_game_paused(is_paused):
|
||||
if is_paused == true:
|
||||
get_tree().paused = true
|
||||
else:
|
||||
get_tree().paused = false
|
||||
|
||||
func switch_scenes(is_mode):
|
||||
if is_mode == "title":
|
||||
get_tree().change_scene_to_file("res://scenes/TitleScn.tscn")
|
||||
elif is_mode == "game":
|
||||
get_tree().change_scene_to_file("res://scenes/GameScn.tscn")
|
||||
Loading…
Add table
Add a link
Reference in a new issue