feat: instantiate dragons in different spots

This commit is contained in:
Gerard Gascón 2025-04-09 17:40:25 +02:00
parent 029ad6d45f
commit 48b6cd42cf
2 changed files with 15 additions and 6 deletions

View file

@ -40,9 +40,5 @@ func _on_change_shoes_pressed() -> void:
func _on_create_pressed() -> void:
if dragon_name.text.is_empty():
return
var result: String = CodeGenerator.new(hat_outfits, shirt_outfits, shoes_outfits).encrypt(hat.texture, shirt.texture, shoes.texture, dragon_name.text)
print(result)
var decrypted: Dictionary = CodeGenerator.new(hat_outfits, shirt_outfits, shoes_outfits).descrypt(result)
print(decrypted)
on_create_dragon.emit(hat.texture, shirt.texture, shoes.texture, dragon_name.text)
queue_free()