1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-08-14 12:44:44 -04:00

Properly reference GameKit

- GameKit is now properly referenced using AutoLoad's root node instead of directly inheriting the Node because it redundent. I'm still learning. xD
- Removed Global Menu
- New icon, song, and font
- Use the engine's lighting
- Version
- SVG Sixam wordmark
This commit is contained in:
Anthony Wilcox 2019-05-06 14:59:49 -04:00
parent 4b501e0c6e
commit 0d1cb030f7
43 changed files with 943 additions and 203 deletions

View file

@ -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 "res://src/GameKit.gd"
extends Node
func _process(delta):
if Input.is_action_pressed("ui_pause"):
is_game_paused(true)
GameKit.is_game_paused(true)
$WinDialogs/PauseWin.show()

View file

@ -0,0 +1,4 @@
extends Node
func _ready():
$Version.text = GameKit.version

View file

@ -2,6 +2,8 @@
# See the LICENSE file in the project root for more information.
extends Node
var version = "19.xx"
func is_game_paused(is_paused):
if is_paused == true:
get_tree().paused = true
@ -13,7 +15,7 @@ func switch_scenes(new_mode):
get_tree().change_scene("res://scn/ClassicScn.tscn")
elif new_mode == "credits":
get_tree().change_scene("res://scn/CreditsScn.tscn")
elif new_mode == "modern":
elif new_mode == "play":
get_tree().change_scene("res://scn/GameScn.tscn")
elif new_mode == "title":
get_tree().change_scene("res://scn/TitleScn.tscn")

View file

@ -37,10 +37,11 @@ func change_accessoires(new_accessory):
accessory = new_accessory
if new_accessory == null:
$Nathan/Top.texture = accessory
$Nathan/Accessory.texture = accessory
$Nathan/Accessory.texture = accessory
# warning-ignore:unused_argument
func _process(delta):
# Change clothes
@ -84,6 +85,7 @@ func _process(delta):
if $Clothes/Wordrobe/Shirts/ShirtsGrid/WhatsNewShirt.is_pressed():
change_tops(load("res://sprites/whatsnew_shirt.svg"))
# Remove clothes
# ===========================================================

View file

@ -1,6 +0,0 @@
extends "res://src/GameKit.gd"
func _process(delta):
if $MenuPanel/TitleScreenBtn.is_pressed():
switch_scenes("title")

View file

@ -1,16 +1,21 @@
# Anthony Wilcox licenses this file to you under the GPL license.
# See the LICENSE file in the project root for more information.
extends "res://src/GameKit.gd"
extends Node
func _process(delta):
if Input.is_action_just_pressed("ui_pause"):
$PauseWin.show()
GameKit.is_game_paused(true)
func _on_ExitBtn_pressed():
is_game_paused(false)
switch_scenes("title")
GameKit.is_game_paused(false)
GameKit.switch_scenes("title")
func _on_SettingsBtn_pressed():
$SettingsWin.show()
func _on_CreditsBtn_pressed():
$CreditsWin.show()
GameKit.switch_scenes("credits")
func _on_LicenseBtn_pressed():
$LicenseWin.show()
@ -26,4 +31,4 @@ func _on_MusicBtn_toggled(button_pressed):
func _on_ResumeBtn_pressed():
$PauseWin.hide()
is_game_paused(false)
GameKit.is_game_paused(false)

View file

@ -1,9 +1,12 @@
# Anthony Wilcox licenses this file to you under the GPL license.
# See the LICENSE file in the project root for more information.
extends AudioStreamPlayer
const tracks = [
'reminiscing',
'together_again',
'at_the_lake',
'mushrooms',
]
func _ready():

View file

@ -1,18 +1,21 @@
# Anthony Wilcox licenses this file to you under the GPL license.
# See the LICENSE file in the project root for more information.
extends "res://src/GameKit.gd"
extends Node
func _ready():
$Version.text = GameKit.version
func _on_ClassicBtn_pressed():
switch_scenes("classic")
GameKit.switch_scenes("classic")
func _on_ModernBtn_pressed():
switch_scenes("modern")
GameKit.switch_scenes("play")
func _on_CreditsBtn_pressed():
switch_scenes("credits")
GameKit.switch_scenes("credits")
func _on_LicenseBtn_pressed():
$WinDialogs/LicenseWin.show()
func _on_PlayBtn_pressed():
switch_scenes("modern")
GameKit.switch_scenes("play")