feat: choose outfit from library when creating a dragon
This commit is contained in:
parent
fd8609c0ab
commit
f07b28d2dc
22 changed files with 370 additions and 17 deletions
13
scenes/dragons/dragon_sprite.gd
Normal file
13
scenes/dragons/dragon_sprite.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends Node2D
|
||||
class_name DragonSprite
|
||||
|
||||
|
||||
@export var hat: Sprite2D
|
||||
@export var shirt: Sprite2D
|
||||
@export var shoes: Sprite2D
|
||||
|
||||
|
||||
func dress(hat: Texture2D, shirt: Texture2D, shoes: Texture2D):
|
||||
self.hat.texture = hat
|
||||
self.shirt.texture = shirt
|
||||
self.shoes.texture = shoes
|
Loading…
Add table
Add a link
Reference in a new issue