91 lines
3.2 KiB
Plaintext
Executable File
91 lines
3.2 KiB
Plaintext
Executable File
[gd_scene load_steps=6 format=4 uid="uid://cba8xar11bpfs"]
|
|
|
|
[ext_resource type="Script" uid="uid://b0q3j0msvb7ai" path="res://objects/enemies/enemy.gd" id="1_dvgkk"]
|
|
[ext_resource type="TileSet" uid="uid://bfkalv0skoxy2" path="res://tileset.tres" id="2_nfxyp"]
|
|
|
|
[sub_resource type="Animation" id="Animation_nfxyp"]
|
|
resource_name = "hurt"
|
|
length = 0.3
|
|
step = 0.1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("TileMapLayer:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [Vector2(-35, -65), Vector2(-5, -65), Vector2(-45, -65), Vector2(-35, -65)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("TileMapLayer:modulate")
|
|
tracks/1/interp = 2
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.3),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [Color(0, 1, 0, 1), Color(1, 0, 0, 1), Color(0, 1, 0, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_4plf3"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("TileMapLayer:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(-35, -65)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("TileMapLayer:modulate")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(0, 1, 0, 1)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_3a0bb"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_4plf3"),
|
|
&"hurt": SubResource("Animation_nfxyp")
|
|
}
|
|
|
|
[node name="Slime" type="Node2D" node_paths=PackedStringArray("health_label", "animation_player")]
|
|
script = ExtResource("1_dvgkk")
|
|
health_label = NodePath("RichTextLabel")
|
|
animation_player = NodePath("AnimationPlayer")
|
|
|
|
[node name="TileMapLayer" type="TileMapLayer" parent="."]
|
|
modulate = Color(0, 1, 0, 1)
|
|
position = Vector2(-35, -65)
|
|
tile_map_data = PackedByteArray("AAAAAAAAAAAPAAUAAAABAAAAAAAPAAUAAAACAAAAAAAPAAUAAAADAAAAAAAPAAUAAAAEAAAAAAAPAAUAAAAFAAAAAAAPAAUAAAAGAAEAAAAMAAUAAAAHAAIAAAAMAAUAAAAIAAMAAAAMAAUAAAAJAAQAAAAMAAUAAAD//wEAAAAPAAIAAAD+/wIAAAAPAAIAAAD9/wMAAAAPAAIAAAD8/wQAAAAPAAIAAAD7/wUAAAADAAsAAAD7/wcAAAADAAsAAAD7/wgAAAADAAsAAAD7/wYAAAADAAsAAAAKAAUAAAADAAsAAAAKAAYAAAADAAsAAAAKAAcAAAADAAsAAAAKAAkAAAADAAsAAAAKAAgAAAADAAsAAAD7/wkAAAADAAsAAAAJAAoAAAAPAAIAAAAIAAsAAAAPAAIAAAAHAAwAAAAPAAIAAAD8/woAAAAMAAUAAAD9/wsAAAAMAAUAAAD+/wwAAAAMAAUAAAD//w0AAAANAAIAAAAAAA0AAAANAAIAAAABAA0AAAANAAIAAAACAA0AAAANAAIAAAADAA0AAAANAAIAAAAEAA0AAAANAAIAAAAFAA0AAAANAAIAAAAGAA0AAAANAAIAAAA=")
|
|
tile_set = ExtResource("2_nfxyp")
|
|
|
|
[node name="RichTextLabel" type="RichTextLabel" parent="."]
|
|
offset_left = -45.0
|
|
offset_top = 85.0
|
|
offset_right = 45.0
|
|
offset_bottom = 125.0
|
|
bbcode_enabled = true
|
|
text = "100 / 100"
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_3a0bb")
|
|
}
|