feat: properly scale instantiated dragons

This commit is contained in:
Gerard Gascón 2025-04-05 12:42:16 +02:00
parent a169e953c3
commit 09586aaa5e
5 changed files with 12 additions and 5 deletions

View file

@ -4,7 +4,7 @@
[ext_resource type="Script" uid="uid://ch7d3wo8ucskb" path="res://scenes/window/draggable.gd" id="2_2r6si"]
[ext_resource type="PackedScene" uid="uid://baa8gpicw2yg0" path="res://scenes/dragons/dragon_sprite.tscn" id="3_ctdir"]
[node name="DragonPopup" type="Window"]
[node name="DragonPopup" type="Window" node_paths=PackedStringArray("dragon")]
disable_3d = true
transparent_bg = true
size = Vector2i(128, 128)
@ -13,6 +13,7 @@ borderless = true
transparent = true
script = ExtResource("1_ctdir")
dragon_speed = 100.0
dragon = NodePath("Dragon")
[node name="DragDropDetector" type="Control" parent="."]
layout_mode = 3
@ -22,4 +23,3 @@ offset_bottom = 40.0
script = ExtResource("2_2r6si")
[node name="Dragon" parent="." instance=ExtResource("3_ctdir")]
position = Vector2(64, 64)