feat: instantiate dragons with initial animation
This commit is contained in:
parent
48b6cd42cf
commit
c422a83f59
6 changed files with 62 additions and 9 deletions
|
@ -8,11 +8,12 @@ size = Vector2(128, 128)
|
|||
|
||||
[node name="Dragon" type="Area2D" node_paths=PackedStringArray("dragon")]
|
||||
script = ExtResource("1_jccds")
|
||||
dragon = NodePath("Dragon")
|
||||
|
||||
[node name="Dragon" parent="." instance=ExtResource("2_l1h0r")]
|
||||
position = Vector2(-64, -64)
|
||||
dragon = NodePath("CollisionShape2D/Dragon")
|
||||
animation_duration = 10.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 1)
|
||||
shape = SubResource("RectangleShape2D_6eaxg")
|
||||
|
||||
[node name="Dragon" parent="CollisionShape2D" instance=ExtResource("2_l1h0r")]
|
||||
position = Vector2(-64, -65)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue