feat: instantiating dragons to ingame position
This commit is contained in:
parent
fc921cc900
commit
610d623653
8 changed files with 64 additions and 19 deletions
|
@ -1,9 +1,16 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://baa8gpicw2yg0"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://miutbdsgccd1"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://fdqnc2qrrvn1" path="res://assets/sprites/icon.svg" id="1_ixu8j"]
|
||||
[ext_resource type="Script" uid="uid://csb23v0fr12e0" path="res://scenes/dragons/dragon_entity_dragger.gd" id="1_jccds"]
|
||||
[ext_resource type="PackedScene" uid="uid://baa8gpicw2yg0" path="res://scenes/dragons/dragon_sprite.tscn" id="2_l1h0r"]
|
||||
|
||||
[node name="Dragon" type="Node2D"]
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6eaxg"]
|
||||
size = Vector2(128, 128)
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
[node name="Dragon" type="Area2D"]
|
||||
script = ExtResource("1_jccds")
|
||||
|
||||
[node name="Dragon" parent="." instance=ExtResource("2_l1h0r")]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 1)
|
||||
texture = ExtResource("1_ixu8j")
|
||||
shape = SubResource("RectangleShape2D_6eaxg")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue