notSpore/evolve-die-repeat/molecular/prey.tscn

66 lines
2.3 KiB
Plaintext

[gd_scene load_steps=9 format=3 uid="uid://cum0iux1pv7bu"]
[ext_resource type="Script" uid="uid://d1b3twb5c47c0" path="res://molecular/prey.gd" id="1_wojl0"]
[ext_resource type="Texture2D" uid="uid://bhcb5g7g7um8" path="res://molecular/assets/prey/prey-dying-frame0.png" id="2_5mr0w"]
[ext_resource type="Texture2D" uid="uid://bxn11avw7dykl" path="res://molecular/assets/prey/prey-dying-frame1.png" id="3_eomdj"]
[ext_resource type="Texture2D" uid="uid://ctkehsavw6ghx" path="res://molecular/assets/prey/prey-healthy-frame0.png" id="4_t6vdg"]
[ext_resource type="Texture2D" uid="uid://uy28y3mkk6nt" path="res://molecular/assets/prey/prey-healthy-frame1.png" id="5_8jbq3"]
[ext_resource type="Texture2D" uid="uid://btnyajci8ptb2" path="res://molecular/assets/prey/prey-injured-frame0.png" id="6_o44iv"]
[ext_resource type="Texture2D" uid="uid://bqll8ge4cr2uf" path="res://molecular/assets/prey/prey-injured-frame1.png" id="7_wx0y7"]
[sub_resource type="SpriteFrames" id="SpriteFrames_43b72"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_5mr0w")
}, {
"duration": 1.0,
"texture": ExtResource("3_eomdj")
}],
"loop": true,
"name": &"Dying",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_t6vdg")
}, {
"duration": 1.0,
"texture": ExtResource("5_8jbq3")
}],
"loop": true,
"name": &"Healthy",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("6_o44iv")
}, {
"duration": 1.0,
"texture": ExtResource("7_wx0y7")
}],
"loop": true,
"name": &"Injured",
"speed": 5.0
}]
[node name="Prey" type="RigidBody2D"]
gravity_scale = 0.379
script = ExtResource("1_wojl0")
metadata/_edit_group_ = true
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(0.1, 0.1)
sprite_frames = SubResource("SpriteFrames_43b72")
animation = &"Healthy"
frame_progress = 0.14205484
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
position = Vector2(0, 0.081250384)
scale = Vector2(0.1, 0.10208334)
polygon = PackedVector2Array(-15.967808, -28.469032, 14.526825, -28.826782, 30.048037, -3.7841516, 14.344225, 21.97399, -15.419998, 22.510618, -31.671623, -4.141903)
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]