Wired up boss heart behaviour
This commit is contained in:
parent
bee8cf77f1
commit
a13f274767
7 changed files with 95 additions and 15 deletions
|
|
@ -6,6 +6,7 @@
|
|||
[ext_resource type="Script" uid="uid://2wtoqserm8g6" path="res://scenes/boss_horse.gd" id="3_r3bxh"]
|
||||
[ext_resource type="Texture2D" uid="uid://b0bdonvu25475" path="res://sprites/frame.png" id="4_qnbj4"]
|
||||
[ext_resource type="Texture2D" uid="uid://dy743vehs0t1t" path="res://icon.svg" id="5_wqpjq"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4nhwvs13x5bc" path="res://sprites/heart.png" id="7_2cdgk"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_neq0i"]
|
||||
size = Vector2(129, 63)
|
||||
|
|
@ -154,6 +155,9 @@ _data = {
|
|||
&"run": SubResource("Animation_qsl3t")
|
||||
}
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_qsl3t"]
|
||||
size = Vector2(31, 28)
|
||||
|
||||
[node name="Boss" type="Area2D" unique_id=2108172712 groups=["boss"]]
|
||||
z_index = -1
|
||||
script = ExtResource("1_neq0i")
|
||||
|
|
@ -212,4 +216,14 @@ texture = ExtResource("5_wqpjq")
|
|||
wait_time = 0.05
|
||||
one_shot = true
|
||||
|
||||
[node name="Heart" type="Area2D" parent="." unique_id=1098254590 groups=["heart"]]
|
||||
position = Vector2(0, -71)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Heart" unique_id=520903474]
|
||||
texture = ExtResource("7_2cdgk")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Heart" unique_id=11221326]
|
||||
position = Vector2(0.5, 0)
|
||||
shape = SubResource("RectangleShape2D_qsl3t")
|
||||
|
||||
[connection signal="timeout" from="Horse/ShootTimer" to="Horse" method="_on_shoot_timer_timeout"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue