1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-06-25 08:04:43 -04:00

Modular character design (#12)

Legs, shirt and the head are now independent sprites that can be changed separately. New clothes can be made from a template instead of having to work within a blank space. This removes the need for extra layers and placeholders while opening the door to creating new scenes and migrating over to new styles.

This wasn't always possible until the SVG port removed the Adobe Animate dependency. The layers and placeholders were there because the original Flash game was based around a drag-and-drop design. Tony's Dress Up was initially intended to be a 1:1 port of the Flash game which is why it wasn't done sooner.

New Emoji-based shirts based on Twemoji because the idea sounded fun. Credits will eventually be added in-game but for now it's in the README. For the time being, a few of the ZC's Dress Up-era shirts have pulled because they were never properly ported over during the remaster.
This commit is contained in:
Anthony Leland 2020-07-15 13:26:20 -04:00 committed by GitHub
parent cc051276d4
commit c406ed56d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
134 changed files with 3044 additions and 1963 deletions

View file

@ -1,4 +1,4 @@
extends "res://scripts/clothing/baseClothing.gd"
extends "res://scripts/clothing/clothing_base.gd"
func _on_accessory_pressed():
character.accessory = texture_normal

View file

@ -1,4 +1,4 @@
extends "res://scripts/clothing/baseClothing.gd"
extends "res://scripts/clothing/clothing_base.gd"
func _on_bottoms_pressed():
character.bottom = texture_normal

View file

@ -1,4 +1,4 @@
extends "res://scripts/clothing/baseClothing.gd"
extends "res://scripts/clothing/clothing_base.gd"
func _on_tops_pressed():
character.top = texture_normal

View file

@ -1,4 +1,4 @@
extends "res://scripts/clothing/baseClothing.gd"
extends "res://scripts/clothing/clothing_base.gd"
func _on_undies_pressed():
character.underwear = texture_normal

16
scripts/game_info.gd Normal file
View file

@ -0,0 +1,16 @@
extends Node
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass

View file

@ -1,12 +1,18 @@
tool
extends Control
export var version: String = "1.0.0"
onready var character = preload("res://resources/character.tres")
onready var blank_top = preload("res://sprites/clothes/blank_top.png")
onready var blank_bottom = preload("res://sprites/clothes/blank_bottom.png")
onready var blank_accessory = preload("res://sprites/clothes/blank_top.png")
onready var base_top = preload("res://sprites/character_base_top.svg")
onready var base_bottom = preload("res://sprites/character_base_legs.svg")
func _ready():
var verLabel = $versionLbl
verLabel.text = "v" + version
func _on_clearBtn_pressed():
$clear.play()
character.accessory = blank_top
character.bottom = blank_bottom
character.top = blank_top
character.accessory = blank_accessory
character.bottom = base_bottom
character.top = base_top

View file

@ -1,12 +1,13 @@
extends TabContainer
onready var character = preload("res://resources/character.tres")
onready var blank_top = preload("res://sprites/clothes/blank_top.png")
onready var blank_bottom = preload("res://sprites/clothes/blank_bottom.png")
onready var blank_accessory = preload("res://sprites/clothes/blank_top.png")
onready var base_top = preload("res://sprites/character_base_top.svg")
onready var base_bottom = preload("res://sprites/character_base_legs.svg")
onready var pants_grid = $Pants/PantsScroll/PantsGrid
onready var shirts_grid = $Shirts/ShirtsScroll/ShirtsGrid
onready var undies_grid = $Underwear/UndiesScroll/UndiesGrid
#onready var undies_grid = $Underwear/UndiesScroll/UndiesGrid
onready var accs_grid = $Accessoires/AccsScroll/AccsGrid
func list_files_in_directory(path):
@ -44,10 +45,8 @@ func check_for_dlc(dlc_pack):
# Lists the files in each of their respective directories
var shirts_dir = "res://scenes/dlc/shirts/"
var pants_dir = "res://scenes/dlc/pants/"
var undies_dir = "res://scenes/dlc/undies/"
var dlc_shirts = list_files_in_directory(shirts_dir)
var dlc_pants = list_files_in_directory(pants_dir)
var dlc_undies = list_files_in_directory(undies_dir)
# Make sure each file actually exist, instance them
# and add them to their respective tabs
@ -62,22 +61,16 @@ func check_for_dlc(dlc_pack):
var init = load(pants_dir + pants).instance()
shirts_grid.add_child(init)
print_debug("Initialized: " + pants_dir + pants)
for undies in dlc_undies:
if dir.file_exists(undies_dir + undies):
var init = load(undies_dir + undies).instance()
shirts_grid.add_child(init)
print_debug("Initialized: " + undies_dir + undies)
func _ready():
# check_for_dlc("testdlc.pck")
check_for_dlc("emojidlc.pck")
pass
func _on_removeAccessory_pressed():
character.accessory = blank_top
character.accessory = blank_accessory
func _on_removePants_pressed():
character.bottom = blank_bottom
character.bottom = base_bottom
func _on_removeShirt_pressed():
character.top = blank_top
character.top = base_top