[gd_scene load_steps=10 format=3 uid="uid://c3iw2v3x6ngrb"] [ext_resource type="PackedScene" uid="uid://bvsdg1v3ksixy" path="res://abstract_prey.tscn" id="1_qvulj"] [ext_resource type="Script" uid="uid://bgossk6xo31gi" path="res://molecular/nucleotide_prey.gd" id="2_0227s"] [ext_resource type="Texture2D" uid="uid://bhcb5g7g7um8" path="res://molecular/assets/prey/prey-dying-frame0.png" id="2_lkj7f"] [ext_resource type="Texture2D" uid="uid://bxn11avw7dykl" path="res://molecular/assets/prey/prey-dying-frame1.png" id="3_svqyr"] [ext_resource type="Texture2D" uid="uid://ctkehsavw6ghx" path="res://molecular/assets/prey/prey-healthy-frame0.png" id="4_ee1gb"] [ext_resource type="Texture2D" uid="uid://uy28y3mkk6nt" path="res://molecular/assets/prey/prey-healthy-frame1.png" id="5_ae5nf"] [ext_resource type="Texture2D" uid="uid://btnyajci8ptb2" path="res://molecular/assets/prey/prey-injured-frame0.png" id="6_0f87h"] [ext_resource type="Texture2D" uid="uid://bqll8ge4cr2uf" path="res://molecular/assets/prey/prey-injured-frame1.png" id="7_w7inl"] [sub_resource type="SpriteFrames" id="SpriteFrames_66x8p"] animations = [{ "frames": [{ "duration": 1.0, "texture": ExtResource("2_lkj7f") }, { "duration": 1.0, "texture": ExtResource("3_svqyr") }], "loop": true, "name": &"Dying", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": ExtResource("4_ee1gb") }, { "duration": 1.0, "texture": ExtResource("5_ae5nf") }], "loop": true, "name": &"Healthy", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": ExtResource("6_0f87h") }, { "duration": 1.0, "texture": ExtResource("7_w7inl") }], "loop": true, "name": &"Injured", "speed": 5.0 }] [node name="NucleotidePrey" instance=ExtResource("1_qvulj")] script = ExtResource("2_0227s") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." index="0"] scale = Vector2(0.1, 0.1) sprite_frames = SubResource("SpriteFrames_66x8p") animation = &"Healthy" [node name="RigidBody2D" type="RigidBody2D" parent="." index="1"] collision_layer = 2 collision_mask = 3 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="RigidBody2D" index="0"] polygon = PackedVector2Array(-16.442108, -21.739502, 14.039459, -23.432922, 29.280273, 3.097351, 12.346039, 27.369736, -17.571075, 29.62761, -32.247375, 1.968399) [connection signal="body_entered" from="RigidBody2D" to="." method="_on_rigid_body_2d_body_entered"]