mirror of
https://github.com/tonytins/dressupzack
synced 2025-07-09 05:54:43 -04:00
Moved common functions to GameKit.gd
- GameKit.gd is meant to act as library. Right now it contains functions for simplfying game pausing and making it easier to switch between commonly used scenes. This should ONLY be used for scripts that inherent the base node type (i.e. Node). - Screenshot was updated to remove the menu bar.
This commit is contained in:
parent
e96a904041
commit
67dac38ded
7 changed files with 35 additions and 31 deletions
|
@ -1,8 +1,8 @@
|
|||
# Anthony Wilcox licenses this file to you under the GPL license.
|
||||
# See the LICENSE file in the project root for more information.
|
||||
extends Node
|
||||
extends "res://src/GameKit.gd"
|
||||
|
||||
func _process(delta):
|
||||
if Input.is_action_pressed("ui_pause"):
|
||||
get_tree().paused = true
|
||||
$WinDialogs/PauseWin.show()
|
||||
is_game_paused(true)
|
||||
$WinDialogs/PauseWin.show()
|
Loading…
Add table
Add a link
Reference in a new issue