refactor: dragon instantiation
This commit is contained in:
parent
c75800aaa8
commit
8983b84731
6 changed files with 76 additions and 35 deletions
14
base.tscn
14
base.tscn
|
|
@ -2,13 +2,23 @@
|
|||
|
||||
[ext_resource type="Script" uid="uid://3kyt3shje5r1" path="res://scripts/window.gd" id="1_3vi8l"]
|
||||
[ext_resource type="Texture2D" uid="uid://fdqnc2qrrvn1" path="res://icon.svg" id="1_rpg24"]
|
||||
[ext_resource type="PackedScene" uid="uid://c7nfcgjxqeg7l" path="res://dragon.tscn" id="2_8rhti"]
|
||||
[ext_resource type="PackedScene" uid="uid://c7nfcgjxqeg7l" path="res://dragon_popup.tscn" id="2_8rhti"]
|
||||
|
||||
[node name="Base" type="Node2D"]
|
||||
[node name="Base" type="Node2D" node_paths=PackedStringArray("dragon_spots")]
|
||||
script = ExtResource("1_3vi8l")
|
||||
dragon_template = ExtResource("2_8rhti")
|
||||
dragon_spots = [NodePath("DragonSpot1"), NodePath("DragonSpot2"), NodePath("DragonSpot3")]
|
||||
|
||||
[node name="Icon" type="Sprite2D" parent="."]
|
||||
position = Vector2(576, 324)
|
||||
scale = Vector2(9, 5.0625)
|
||||
texture = ExtResource("1_rpg24")
|
||||
|
||||
[node name="DragonSpot1" type="Node2D" parent="."]
|
||||
position = Vector2(259, 450)
|
||||
|
||||
[node name="DragonSpot2" type="Node2D" parent="."]
|
||||
position = Vector2(557, 239)
|
||||
|
||||
[node name="DragonSpot3" type="Node2D" parent="."]
|
||||
position = Vector2(850, 360)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue