refactor: dragon instantiation
This commit is contained in:
parent
c75800aaa8
commit
8983b84731
6 changed files with 76 additions and 35 deletions
25
dragon.tscn
25
dragon.tscn
|
@ -1,26 +1,9 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://c7nfcgjxqeg7l"]
|
||||
[gd_scene load_steps=2 format=3 uid="uid://baa8gpicw2yg0"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://fdqnc2qrrvn1" path="res://icon.svg" id="1_ixu8j"]
|
||||
[ext_resource type="Script" uid="uid://bmlkcni4km614" path="res://scripts/dragon/dragon.gd" id="1_n6spy"]
|
||||
[ext_resource type="Script" uid="uid://ch7d3wo8ucskb" path="res://scripts/dragon/draggable.gd" id="2_qxdfn"]
|
||||
|
||||
[node name="Dragon" type="Window"]
|
||||
disable_3d = true
|
||||
transparent_bg = true
|
||||
position = Vector2i(0, 36)
|
||||
size = Vector2i(128, 128)
|
||||
unresizable = true
|
||||
borderless = true
|
||||
transparent = true
|
||||
script = ExtResource("1_n6spy")
|
||||
[node name="Dragon" type="Node2D"]
|
||||
|
||||
[node name="DragDropDetector" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
script = ExtResource("2_qxdfn")
|
||||
|
||||
[node name="Icon" type="Sprite2D" parent="."]
|
||||
position = Vector2(64, 65)
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
position = Vector2(0, 1)
|
||||
texture = ExtResource("1_ixu8j")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue