184 lines
4.9 KiB
Plaintext
184 lines
4.9 KiB
Plaintext
[gd_scene load_steps=27 format=2]
|
|
|
|
[ext_resource path="res://Resources/Level_5_Enemy_Glowing_Ghost_Occluder.tres" type="OccluderPolygon2D" id=1]
|
|
[ext_resource path="res://Sprites/Assets/Light.png" type="Texture" id=2]
|
|
[ext_resource path="res://Sprites/Enemies/hell-hound-idle.png" type="Texture" id=3]
|
|
[ext_resource path="res://Enemies/Hellhound.gd" type="Script" id=4]
|
|
[ext_resource path="res://Sprites/Enemies/hell-hound-jump.png" type="Texture" id=5]
|
|
[ext_resource path="res://Sprites/Enemies/hell-hound-run.png" type="Texture" id=6]
|
|
|
|
[sub_resource type="AtlasTexture" id=9]
|
|
flags = 4
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 0, 0, 64, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=10]
|
|
flags = 4
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 64, 0, 64, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=11]
|
|
flags = 4
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 128, 0, 64, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=12]
|
|
flags = 4
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 192, 0, 64, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=13]
|
|
flags = 4
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 256, 0, 64, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=14]
|
|
flags = 4
|
|
atlas = ExtResource( 3 )
|
|
region = Rect2( 320, 0, 64, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
|
flags = 4
|
|
atlas = ExtResource( 5 )
|
|
region = Rect2( 0, 0, 65, 48 )
|
|
|
|
[sub_resource type="AtlasTexture" id=4]
|
|
flags = 4
|
|
atlas = ExtResource( 5 )
|
|
region = Rect2( 65, 0, 65, 48 )
|
|
|
|
[sub_resource type="AtlasTexture" id=5]
|
|
flags = 4
|
|
atlas = ExtResource( 5 )
|
|
region = Rect2( 130, 0, 65, 48 )
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
|
flags = 4
|
|
atlas = ExtResource( 5 )
|
|
region = Rect2( 195, 0, 65, 48 )
|
|
|
|
[sub_resource type="AtlasTexture" id=7]
|
|
flags = 4
|
|
atlas = ExtResource( 5 )
|
|
region = Rect2( 260, 0, 65, 48 )
|
|
|
|
[sub_resource type="AtlasTexture" id=8]
|
|
flags = 4
|
|
atlas = ExtResource( 5 )
|
|
region = Rect2( 325, 0, 65, 48 )
|
|
|
|
[sub_resource type="AtlasTexture" id=15]
|
|
flags = 4
|
|
atlas = ExtResource( 6 )
|
|
region = Rect2( 0, 0, 67, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=16]
|
|
flags = 4
|
|
atlas = ExtResource( 6 )
|
|
region = Rect2( 67, 0, 67, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=17]
|
|
flags = 4
|
|
atlas = ExtResource( 6 )
|
|
region = Rect2( 134, 0, 67, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=18]
|
|
flags = 4
|
|
atlas = ExtResource( 6 )
|
|
region = Rect2( 201, 0, 67, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=19]
|
|
flags = 4
|
|
atlas = ExtResource( 6 )
|
|
region = Rect2( 268, 0, 67, 32 )
|
|
|
|
[sub_resource type="SpriteFrames" id=20]
|
|
animations = [ {
|
|
"frames": [ SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ) ],
|
|
"loop": true,
|
|
"name": "Idle",
|
|
"speed": 3.0
|
|
}, {
|
|
"frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ) ],
|
|
"loop": true,
|
|
"name": "Jump",
|
|
"speed": 8.0
|
|
}, {
|
|
"frames": [ SubResource( 15 ), SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ) ],
|
|
"loop": true,
|
|
"name": "Running",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="CapsuleShape2D" id=1]
|
|
radius = 3.0
|
|
height = 2.0
|
|
|
|
[sub_resource type="CircleShape2D" id=2]
|
|
radius = 50.0
|
|
|
|
[node name="Hellhound" type="KinematicBody2D" groups=["enemies"]]
|
|
collision_layer = 2
|
|
script = ExtResource( 4 )
|
|
|
|
[node name="AnimatedSprite1" type="AnimatedSprite" parent="."]
|
|
position = Vector2( 1, -3 )
|
|
scale = Vector2( 0.5625, 0.5625 )
|
|
frames = SubResource( 20 )
|
|
animation = "Idle"
|
|
frame = 5
|
|
playing = true
|
|
|
|
[node name="Hitbox" type="CollisionShape2D" parent="."]
|
|
visible = false
|
|
position = Vector2( 0, -3 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="Player Detector" type="Area2D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
input_pickable = false
|
|
monitorable = false
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector"]
|
|
visible = false
|
|
scale = Vector2( 1.5, 1.5 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="Player Attack" type="Area2D" parent="."]
|
|
visible = false
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
input_pickable = false
|
|
monitorable = false
|
|
|
|
[node name="Attack" type="CollisionShape2D" parent="Player Attack"]
|
|
visible = false
|
|
scale = Vector2( 0.5, 0.5 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="Light2D" type="Light2D" parent="."]
|
|
visible = false
|
|
scale = Vector2( 0.5, 0.5 )
|
|
texture = ExtResource( 2 )
|
|
color = Color( 0.984314, 0.94902, 0.211765, 0.392157 )
|
|
energy = 2.0
|
|
range_item_cull_mask = 11
|
|
|
|
[node name="Light2DEyes" type="Light2D" parent="."]
|
|
visible = false
|
|
scale = Vector2( 0.1, 0.1 )
|
|
texture = ExtResource( 2 )
|
|
offset = Vector2( 5, -40 )
|
|
range_item_cull_mask = 4
|
|
|
|
[node name="LightOccluder2D" type="LightOccluder2D" parent="."]
|
|
visible = false
|
|
show_behind_parent = true
|
|
occluder = ExtResource( 1 )
|
|
|
|
[connection signal="area_entered" from="Player Detector" to="." method="_on_player_detector_area_entered"]
|
|
[connection signal="area_exited" from="Player Detector" to="." method="_on_player_detector_area_exited"]
|
|
[connection signal="area_entered" from="Player Attack" to="." method="_on_Player_Attack_area_entered"]
|
|
[connection signal="area_exited" from="Player Attack" to="." method="_on_Player_Attack_area_exited"]
|