65 lines
2.2 KiB
Text
65 lines
2.2 KiB
Text
[gd_scene load_steps=11 format=3 uid="uid://dhxnae8wbhp3u"]
|
|
|
|
[ext_resource type="Script" uid="uid://ceqsyf8voslys" path="res://vines_petals/bud.gd" id="1_543bc"]
|
|
[ext_resource type="Texture2D" uid="uid://bvn8x53bmkkww" path="res://vines_petals/bud_closed.png" id="1_nxhvy"]
|
|
[ext_resource type="Texture2D" uid="uid://dafanrd3fctmx" path="res://vines_petals/bud_half_open.png" id="2_t3v0v"]
|
|
[ext_resource type="Texture2D" uid="uid://d15c1exwtp7sc" path="res://vines_petals/bud_open.png" id="3_543bc"]
|
|
[ext_resource type="Texture2D" uid="uid://dcd5lpfmn67m" path="res://vines_petals/bud_open_full.png" id="4_tg157"]
|
|
[ext_resource type="Script" uid="uid://ct8am2xeyymuj" path="res://utils/enemy_hurtbox.gd" id="6_tg157"]
|
|
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="7_tg157"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_rnmbv"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("1_nxhvy")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_t3v0v")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_543bc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_tg157")
|
|
}],
|
|
"loop": false,
|
|
"name": &"open",
|
|
"speed": 7.5
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_rnmbv"]
|
|
radius = 12.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_rupnl"]
|
|
|
|
[node name="Bud" type="Node2D"]
|
|
script = ExtResource("1_543bc")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
scale = Vector2(3, 3)
|
|
sprite_frames = SubResource("SpriteFrames_rnmbv")
|
|
animation = &"open"
|
|
|
|
[node name="EnemyHurtbox" type="Area2D" parent="."]
|
|
scale = Vector2(3, 3)
|
|
collision_layer = 16
|
|
collision_mask = 0
|
|
script = ExtResource("6_tg157")
|
|
max_hp = 1
|
|
flash_duration = 0.0
|
|
flashColor = Color(1, 1, 1, 1)
|
|
metadata/_custom_type_script = "uid://ct8am2xeyymuj"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyHurtbox"]
|
|
position = Vector2(0, 3.5)
|
|
shape = SubResource("CircleShape2D_rnmbv")
|
|
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="EnemyHurtbox"]
|
|
position = Vector2(-0.5, -5)
|
|
scale = Vector2(0.5, 1)
|
|
shape = SubResource("CircleShape2D_rupnl")
|
|
|
|
[node name="EarthAligner" parent="." instance=ExtResource("7_tg157")]
|
|
|
|
[connection signal="died" from="EnemyHurtbox" to="." method="_on_opened"]
|