148 lines
4.1 KiB
Plaintext
148 lines
4.1 KiB
Plaintext
[gd_scene load_steps=32 format=2]
|
|
|
|
[ext_resource path="res://Sprites/Assets/ghost-appears.png" type="Texture" id=1]
|
|
[ext_resource path="res://Sprites/Assets/ghost-idle.png" type="Texture" id=2]
|
|
[ext_resource path="res://Sprites/Assets/ghost-shriek.png" type="Texture" id=3]
|
|
[ext_resource path="res://Sprites/Assets/ghost-vanish.png" type="Texture" id=4]
|
|
[ext_resource path="res://Enemies/Ghost_Enemy.gd" type="Script" id=5]
|
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 0, 0, 64, 80 )
|
|
|
|
[sub_resource type="AtlasTexture" id=4]
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 64, 0, 64, 80 )
|
|
|
|
[sub_resource type="AtlasTexture" id=5]
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 128, 0, 64, 80 )
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 192, 0, 64, 80 )
|
|
|
|
[sub_resource type="AtlasTexture" id=7]
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 256, 0, 64, 80 )
|
|
|
|
[sub_resource type="AtlasTexture" id=8]
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 320, 0, 64, 80 )
|
|
|
|
[sub_resource type="AtlasTexture" id=9]
|
|
atlas = ExtResource( 2 )
|
|
region = Rect2( 384, 0, 64, 80 )
|
|
|
|
[sub_resource type="AtlasTexture" id=10]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 0, 0, 64, 48 )
|
|
|
|
[sub_resource type="AtlasTexture" id=11]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 64, 0, 64, 48 )
|
|
|
|
[sub_resource type="AtlasTexture" id=12]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 128, 0, 64, 48 )
|
|
|
|
[sub_resource type="AtlasTexture" id=13]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 192, 0, 64, 48 )
|
|
|
|
[sub_resource type="AtlasTexture" id=14]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 256, 0, 64, 48 )
|
|
|
|
[sub_resource type="AtlasTexture" id=15]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 320, 0, 64, 48 )
|
|
|
|
[sub_resource type="AtlasTexture" id=16]
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 0, 0, 64, 80 )
|
|
|
|
[sub_resource type="AtlasTexture" id=17]
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 64, 0, 64, 80 )
|
|
|
|
[sub_resource type="AtlasTexture" id=18]
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 128, 0, 64, 80 )
|
|
|
|
[sub_resource type="AtlasTexture" id=19]
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 192, 0, 64, 80 )
|
|
|
|
[sub_resource type="AtlasTexture" id=20]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 0, 0, 64, 64 )
|
|
|
|
[sub_resource type="AtlasTexture" id=21]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 64, 0, 64, 64 )
|
|
|
|
[sub_resource type="AtlasTexture" id=22]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 128, 0, 64, 64 )
|
|
|
|
[sub_resource type="AtlasTexture" id=23]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 192, 0, 64, 64 )
|
|
|
|
[sub_resource type="AtlasTexture" id=24]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 256, 0, 64, 64 )
|
|
|
|
[sub_resource type="AtlasTexture" id=25]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 320, 0, 64, 64 )
|
|
|
|
[sub_resource type="AtlasTexture" id=26]
|
|
atlas = ExtResource( 4 )
|
|
region = Rect2( 384, 0, 64, 64 )
|
|
|
|
[sub_resource type="SpriteFrames" id=27]
|
|
animations = [ {
|
|
"frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ) ],
|
|
"loop": true,
|
|
"name": "idle",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ) ],
|
|
"loop": true,
|
|
"name": "appear",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ) ],
|
|
"loop": true,
|
|
"name": "shriek",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ SubResource( 20 ), SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ), SubResource( 25 ), SubResource( 26 ) ],
|
|
"loop": true,
|
|
"name": "vanish",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="CircleShape2D" id=28]
|
|
radius = 37.8109
|
|
|
|
[node name="Node2D" type="Node2D"]
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
frames = SubResource( 27 )
|
|
animation = "appear"
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
position = Vector2( 0.209557, 1.52058 )
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
position = Vector2( 0.187286, 0 )
|
|
shape = SubResource( 28 )
|
|
|
|
[connection signal="animation_finished" from="AnimatedSprite" to="." method="_on_AnimatedSprite_animation_finished"]
|
|
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]
|