128 lines
3.6 KiB
Plaintext
128 lines
3.6 KiB
Plaintext
[gd_scene load_steps=17 format=2]
|
|
|
|
[ext_resource path="res://Sprites/Enemies/Eyeball_Boss_Spritesheet.png" type="Texture" id=1]
|
|
[ext_resource path="res://Enemies/Eyeball Boss.gd" type="Script" id=2]
|
|
[ext_resource path="res://Sprites/Assets/Light.png" type="Texture" id=3]
|
|
[ext_resource path="res://Enemies/Projectiles/Glowing Blue Fireball.tscn" type="PackedScene" id=4]
|
|
|
|
[sub_resource type="AtlasTexture" id=1]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 0, 0, 32, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 32, 0, 32, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 64, 0, 32, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=4]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 96, 0, 32, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=5]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 128, 0, 32, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 160, 0, 32, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=7]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 192, 0, 32, 32 )
|
|
|
|
[sub_resource type="AtlasTexture" id=8]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 224, 0, 32, 32 )
|
|
|
|
[sub_resource type="SpriteFrames" id=9]
|
|
animations = [ {
|
|
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ) ],
|
|
"loop": true,
|
|
"name": "idle",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="CircleShape2D" id=10]
|
|
radius = 15.0
|
|
|
|
[sub_resource type="CircleShape2D" id=12]
|
|
radius = 17.0
|
|
|
|
[sub_resource type="CircleShape2D" id=11]
|
|
radius = 200.0
|
|
|
|
[node name="Eyeball Boss" type="StaticBody2D"]
|
|
light_mask = 0
|
|
collision_mask = 0
|
|
script = ExtResource( 2 )
|
|
glowing_blue_fireball = ExtResource( 4 )
|
|
|
|
[node name="Sprite" type="AnimatedSprite" parent="."]
|
|
self_modulate = Color( 0.705882, 0.705882, 0.705882, 1 )
|
|
frames = SubResource( 9 )
|
|
animation = "idle"
|
|
frame = 2
|
|
playing = true
|
|
|
|
[node name="Collision" type="CollisionShape2D" parent="."]
|
|
visible = false
|
|
light_mask = 0
|
|
shape = SubResource( 10 )
|
|
|
|
[node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox_2"]]
|
|
light_mask = 0
|
|
collision_layer = 4
|
|
collision_mask = 2
|
|
input_pickable = false
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
|
visible = false
|
|
light_mask = 0
|
|
shape = SubResource( 12 )
|
|
|
|
[node name="Player Detector" type="Area2D" parent="."]
|
|
light_mask = 0
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
input_pickable = false
|
|
monitorable = false
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector"]
|
|
visible = false
|
|
light_mask = 0
|
|
shape = SubResource( 11 )
|
|
|
|
[node name="Light" type="Light2D" parent="."]
|
|
texture = ExtResource( 3 )
|
|
texture_scale = 0.8
|
|
|
|
[node name="Flash" type="Light2D" parent="."]
|
|
visible = false
|
|
position = Vector2( 0, 8 )
|
|
texture = ExtResource( 3 )
|
|
texture_scale = 0.2
|
|
color = Color( 0, 0.952941, 1, 1 )
|
|
shadow_item_cull_mask = 0
|
|
|
|
[node name="Shoot" type="Timer" parent="."]
|
|
wait_time = 1.5
|
|
autostart = true
|
|
|
|
[node name="Flash Timer" type="Timer" parent="."]
|
|
wait_time = 0.1
|
|
one_shot = true
|
|
|
|
[node name="Hit" type="Timer" parent="."]
|
|
wait_time = 0.1
|
|
one_shot = true
|
|
|
|
[connection signal="area_entered" from="Hitbox" to="." method="_on_hitbox_area_entered"]
|
|
[connection signal="body_entered" from="Player Detector" to="." method="_on_player_detector_body_entered"]
|
|
[connection signal="body_exited" from="Player Detector" to="." method="_on_player_detector_body_exited"]
|
|
[connection signal="timeout" from="Shoot" to="." method="_on_shoot_timeout"]
|
|
[connection signal="timeout" from="Flash Timer" to="." method="_on_flash_timer_timeout"]
|
|
[connection signal="timeout" from="Hit" to="." method="_on_hit_timeout"]
|