summaryrefslogtreecommitdiff
path: root/scenes/defenders/warlock_projectile.tscn
blob: 34204bc12eecd4807f0fcad26ac96c689f0867d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[gd_scene load_steps=4 format=3 uid="uid://bjt768hxqfu5h"]

[ext_resource type="Script" uid="uid://kolqesiin33p" path="res://scenes/defenders/warlock_projectile.gd" id="1_jonmr"]
[ext_resource type="Texture2D" uid="uid://di2vybjsniag4" path="res://assets/tilemap.png" id="2_c7g7q"]

[sub_resource type="CircleShape2D" id="CircleShape2D_0ilu8"]
radius = 8.0

[node name="WarlockProjectile" type="CharacterBody2D"]
script = ExtResource("1_jonmr")

[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_c7g7q")
region_enabled = true
region_rect = Rect2(432, 320, 16, 16)

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
scale = Vector2(0.2, 0.2)
shape = SubResource("CircleShape2D_0ilu8")

[node name="Area2D" type="Area2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
scale = Vector2(0.3, 0.3)
shape = SubResource("CircleShape2D_0ilu8")

[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]