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

Huge overhual

- We'll now using Godot's native UI elements along with a custom theme and fonts.
- Changing to the character's clothes is now done by referencing the instanced node instead of the game screen. You no longer have to blindly guess where to put the placeholders from in clothes scene because the placeholders are already there for changing.
- Classic mode now has it's own copy of the character node. This was the reason for the original setup.
- Disabled some debug warnings
- Window is now resizable and will respect aspect ratio
- Credits screen
- Global menu, WIP
This commit is contained in:
Anthony Wilcox 2019-05-05 16:15:34 -04:00
parent 023f6ec90e
commit 2b0755bf34
33 changed files with 1175 additions and 667 deletions

View file

@ -0,0 +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"
func _process(delta):
if Input.is_action_pressed("ui_pause"):
is_game_paused(true)
$WinDialogs/PauseWin.show()

View file

@ -1,126 +0,0 @@
# Anthony Wilcox licenses this file to you under the GPL license.
# See the LICENSE file in the project root for more information.
extends Node
# Default clothing
onready var bottoms = load("res://sprites/bottoms_placeholder.png")
onready var tops = load("res://sprites/tops_placeholder.png")
onready var accessory = load("res://sprites/tops_placeholder.png")
# ZC's Dress Up was stylized to be cute, not adult.
# Underwear cam be suggestive but never lewd.
onready var undies = load("res://sprites/briefs.svg")
func _process(delta):
if $Wordrobe/Accessoires/AccessoiresGrid/CanonCam.is_pressed() == true:
change_accessoires(load("res://sprites/camera.png"))
if $Wordrobe/Pants/PantsGrid/Jeans.is_pressed() == true:
change_bottoms(load("res://sprites/jeans.svg"))
if $Wordrobe/Pants/PantsGrid/Sweats.is_pressed() == true:
change_bottoms(load("res://sprites/sweat_pants.svg"))
if $Wordrobe/Pants/PantsGrid/DJShorts.is_pressed() == true:
change_bottoms(load("res://sprites/dj_shorts.svg"))
func change_bottoms(new_bottom):
bottoms = new_bottom
if new_bottom == null:
$Body/Bottom.texture = bottoms
if undies == load("res://sprites/owo_censor.svg"):
change_undies(null)
$Body/Bottom.texture = bottoms
func change_undies(new_undies):
undies = new_undies
$Body/Undies.texture = undies
func change_tops(new_top):
tops = new_top
if new_top == null:
$Body/Top.texture = tops
$Body/Top.texture = tops
func change_accessoires(new_accessory):
accessory = new_accessory
if new_accessory == null:
$Body/Top.texture = accessory
$Body/Accessory.texture = accessory
func _on_Remove_Shirt_pressed():
change_tops(null)
func _on_Remove_Pants_pressed():
change_bottoms(null)
func _on_Remove_Accessory_pressed():
change_accessoires(null)
func _on_DJ_Shorts_pressed():
change_bottoms(load("res://sprites/dj_shorts.svg"))
func _on_ZBriefs_pressed():
change_undies(load("res://sprites/z_briefs.svg"))
func _on_Briefs_pressed():
change_undies(load("res://sprites/briefs.svg"))
func _on_Jeans_pressed():
change_bottoms(load("res://sprites/jeans.svg"))
func _on_OwO_Censor_pressed():
change_bottoms(null)
change_undies(load("res://sprites/owo_censor.svg"))
func _on_Sweats_pressed():
change_bottoms(load("res://sprites/sweat_pants.svg"))
func _on_Sweatshirt_pressed():
change_tops(load("res://sprites/old_sweatshirt.png"))
func _on_DJ_Shirt_pressed():
change_tops(load("res://sprites/dj_shirt.png"))
func _on_Raw_pressed():
change_tops(load("res://sprites/raw_shirt.svg"))
func _on_Atomic_pressed():
change_tops(load("res://sprites/atomic_shirt.svg"))
func _on_Korm_Shirt_pressed():
change_tops(load("res://sprites/korm_shirt.png"))
func _on_Z_Shirt_pressed():
change_tops(load("res://sprites/z_shirt.png"))
func _on_Biker_Jacket_pressed():
change_tops(load("res://sprites/biker_jacket.png"))
func _on_Train_Hoodie_pressed():
change_tops(load("res://sprites/train_hoodie.png"))
func _on_Beat_Up_Jeans_pressed():
change_bottoms(load("res://sprites/beat_up_jeans.svg"))
func _on_NL_Jacket_pressed():
change_tops(load("res://sprites/nl_jacket.png"))
func _on_Blue_Camo_Jeans_pressed():
change_bottoms(load("res://sprites/blue_camo_jeans.svg"))
func _on_Whats_New_Shirt_pressed():
change_tops(load("res://sprites/whatsnew_shirt.png"))
func _on_Fundosi_pressed():
change_undies(load("res://sprites/fundosi.svg"))
func _on_Camera_pressed():
change_accessoires(load("res://sprites/camera.png"))

View file

@ -11,6 +11,8 @@ func is_game_paused(is_paused):
func switch_scenes(new_mode):
if new_mode == "classic":
get_tree().change_scene("res://scn/ClassicScn.tscn")
elif new_mode == "credits":
get_tree().change_scene("res://scn/CreditsScn.tscn")
elif new_mode == "modern":
get_tree().change_scene("res://scn/GameScn.tscn")
elif new_mode == "title":

View file

@ -2,7 +2,90 @@
# See the LICENSE file in the project root for more information.
extends "res://src/GameKit.gd"
# Default clothing
onready var bottoms = load("res://sprites/bottoms_placeholder.png")
onready var tops = load("res://sprites/tops_placeholder.png")
onready var accessory = load("res://sprites/tops_placeholder.png")
# ZC's Dress Up was stylized to be cute, not adult.
# Underwear cam be suggestive but never lewd.
onready var undies = load("res://sprites/briefs.svg")
func change_bottoms(new_bottom):
bottoms = new_bottom
if new_bottom == null:
$Nathan/Bottom.texture = bottoms
if undies == load("res://sprites/owo_censor.svg"):
change_undies(null)
$Nathan/Bottom.texture = bottoms
func change_undies(new_undies):
undies = new_undies
$Nathan/Undies.texture = undies
func change_tops(new_top):
tops = new_top
if new_top == null:
$Nathan/Top.texture = tops
$Nathan/Top.texture = tops
func change_accessoires(new_accessory):
accessory = new_accessory
if new_accessory == null:
$Nathan/Top.texture = accessory
$Nathan/Accessory.texture = accessory
func _process(delta):
if Input.is_action_pressed("ui_pause"):
is_game_paused(true)
$WinDialogs/PauseWin.show()
# Change clothes
# ===========================================================
if $Clothes/Wordrobe/Accessoires/AccsGrid/CanonCam.is_pressed():
change_accessoires(load("res://sprites/camera.png"))
if $Clothes/Wordrobe/Pants/PantsGrid/Jeans.is_pressed():
change_bottoms(load("res://sprites/jeans.svg"))
if $Clothes/Wordrobe/Pants/PantsGrid/Sweats.is_pressed():
change_bottoms(load("res://sprites/sweat_pants.svg"))
if $Clothes/Wordrobe/Pants/PantsGrid/BeatUpJeans.is_pressed():
change_bottoms(load("res://sprites/beat_up_jeans.svg"))
# if $Clothes/Wordrobe/Pants/PantsGrid/DJShorts.is_pressed():
# change_bottoms(load("res://sprites/dj_shorts.svg"))
if $Clothes/Wordrobe/Underwear/UndiesGrid/Briefs.is_pressed():
change_undies(load("res://sprites/briefs.svg"))
if $Clothes/Wordrobe/Underwear/UndiesGrid/ZBriefs.is_pressed():
change_undies(load("res://sprites/z_briefs.svg"))
if $Clothes/Wordrobe/Underwear/UndiesGrid/Fundosi.is_pressed():
change_undies(load("res://sprites/fundosi.svg"))
if $Clothes/Wordrobe/Underwear/UndiesGrid/OwOCensor.is_pressed():
change_bottoms(null)
change_undies(load("res://sprites/owo_censor.svg"))
if $Clothes/Wordrobe/Pants/PantsGrid/BlueCamoJeans.is_pressed():
change_bottoms(load("res://sprites/blue_camo_jeans.svg"))
# Remove clothes
# ===========================================================
if $Clothes/Wordrobe/Accessoires/AccsGrid/RemoveAccessory.is_pressed():
change_accessoires(null)
if $Clothes/Wordrobe/Shirts/ShirtsGrid/RemoveShirt.is_pressed():
change_tops(null)
if $Clothes/Wordrobe/Pants/PantsGrid/RemovePants.is_pressed():
change_bottoms(null)

View file

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

View file

@ -9,7 +9,7 @@ func _on_ModernBtn_pressed():
switch_scenes("modern")
func _on_CreditsBtn_pressed():
$WinDialogs/CreditsWin.show()
switch_scenes("credits")
func _on_LicenseBtn_pressed():
$WinDialogs/LicenseWin.show()