1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-06-26 00:24:44 -04:00

WIP decoupling clothing buttons

Couldn't think of a better title. Anyway, the current system is repeitive and redundent. While it works, it's not by means ideal. Because you have to manually write in a new condiation for every new clothing added. What makes it redundant is the fact that every clothing functions exactly the same. The only difference is in the layers it uses.
This commit is contained in:
Anthony Foxclaw 2020-06-27 11:20:12 -04:00
parent bfd678a1de
commit 721e2ab858
24 changed files with 132 additions and 84 deletions

10
scripts/characterBase.gd Normal file
View file

@ -0,0 +1,10 @@
# Anthony Wilcox licenses this file to you under the MPL license.
# See the LICENSE file in the project root for more information.
extends Node2D
onready var character = preload("res://resources/character.tres")
onready var accessory = $Accessory
func _process(delta):
if character.accessory != null:
accessory.texture = character.accessory