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

Follow Godot file naming conventions

This commit is contained in:
Anthony Foxclaw 2020-07-15 08:33:25 -04:00
parent 0185999e9c
commit bcaf5680b3
38 changed files with 299 additions and 295 deletions

22
scripts/character_base.gd Normal file
View file

@ -0,0 +1,22 @@
# 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
onready var underwear = $Undies
onready var bottom = $Bottom
onready var top = $Top
func _process(delta):
if character.accessory != null:
accessory.texture = character.accessory
if character.underwear != null:
underwear.texture = character.underwear
if character.bottom != null:
bottom.texture = character.bottom
if character.top != null:
top.texture = character.top