mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:05:34 +00:00
98 lines
3.8 KiB
Text
98 lines
3.8 KiB
Text
[gd_scene load_steps=13 format=3 uid="uid://d1rlw6ddpmrn8"]
|
|
|
|
[ext_resource type="Script" uid="uid://bjs2u8gogvs03" path="res://Scripts/Actors/Boss.cs" id="1_na4uq"]
|
|
[ext_resource type="Script" uid="uid://c4qmuxjhheahr" path="res://Scripts/Components/ProximityPlayerDetection.cs" id="3_gka5j"]
|
|
[ext_resource type="SpriteFrames" uid="uid://b40acsfrnssox" path="res://Resources/Sprites/Rumia_Boss.tres" id="3_vqdji"]
|
|
[ext_resource type="PackedScene" uid="uid://crry0rgk7a8sm" path="res://Scenes/Weapons/BaseWeapon.tscn" id="4_xc6nm"]
|
|
[ext_resource type="PackedScene" uid="uid://cuixq5ex0j40h" path="res://Scenes/enemyBullet.tscn" id="5_g1p0m"]
|
|
[ext_resource type="Resource" uid="uid://d2l607uabv3d6" path="res://Resources/BossPhases/Rumia_Boss_Script.tres" id="6_ifwrk"]
|
|
[ext_resource type="Script" uid="uid://c6467d6yx50qh" path="res://Scripts/Components/BulletSpawner.cs" id="7_2obh7"]
|
|
[ext_resource type="Script" uid="uid://dtg2vhquyrib3" path="res://Scripts/Components/Actors/BossSpriteAnimator.cs" id="8_vqdji"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_8gtts"]
|
|
radius = 7.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_cacb5"]
|
|
radius = 4.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_v711r"]
|
|
radius = 85.0529
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_m1rsg"]
|
|
size = Vector2(8, 12)
|
|
|
|
[node name="Rumia" type="CharacterBody2D" groups=["Destroyable"]]
|
|
collision_layer = 16
|
|
collision_mask = 9
|
|
script = ExtResource("1_na4uq")
|
|
BossName = "Rumia"
|
|
BossScript = ExtResource("6_ifwrk")
|
|
CameraOffset = Vector2(0, 32)
|
|
Health = 200.0
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = ExtResource("3_vqdji")
|
|
animation = &"Left"
|
|
autoplay = "default"
|
|
frame = 1
|
|
frame_progress = 0.41097
|
|
|
|
[node name="Damage_HitBox" type="CollisionShape2D" parent="."]
|
|
visible = false
|
|
shape = SubResource("CircleShape2D_8gtts")
|
|
|
|
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
|
collision_layer = 16
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
|
visible = false
|
|
position = Vector2(0, 5)
|
|
shape = SubResource("CircleShape2D_cacb5")
|
|
|
|
[node name="PlayerDetection" type="Area2D" parent="."]
|
|
visible = false
|
|
collision_layer = 16
|
|
collision_mask = 2
|
|
script = ExtResource("3_gka5j")
|
|
|
|
[node name="PlayerDetectionArea" type="CollisionShape2D" parent="PlayerDetection"]
|
|
shape = SubResource("CircleShape2D_v711r")
|
|
|
|
[node name="ShootTimer" type="Timer" parent="."]
|
|
wait_time = 0.4
|
|
one_shot = true
|
|
|
|
[node name="Weapon" parent="." instance=ExtResource("4_xc6nm")]
|
|
BulletScene = ExtResource("5_g1p0m")
|
|
|
|
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
|
|
target_desired_distance = 64.0
|
|
path_max_distance = 800.0
|
|
path_postprocessing = 1
|
|
avoidance_enabled = true
|
|
debug_enabled = true
|
|
debug_path_custom_color = Color(1, 0, 0, 1)
|
|
|
|
[node name="DamageHitbox" type="Area2D" parent="."]
|
|
collision_layer = 16
|
|
collision_mask = 9
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="DamageHitbox"]
|
|
shape = SubResource("RectangleShape2D_m1rsg")
|
|
|
|
[node name="BulletSpawner" type="Node2D" parent="."]
|
|
script = ExtResource("7_2obh7")
|
|
BulletScene = ExtResource("5_g1p0m")
|
|
|
|
[node name="BossSpriteAnimator" type="Node2D" parent="." node_paths=PackedStringArray("AnimatedSprite2D", "Enemy")]
|
|
script = ExtResource("8_vqdji")
|
|
AnimatedSprite2D = NodePath("../AnimatedSprite2D")
|
|
Enemy = NodePath("..")
|
|
LeftAnimationName = &"Left"
|
|
RightAnimationName = &"Right"
|
|
|
|
[connection signal="area_entered" from="PlayerDetection" to="PlayerDetection" method="_on_area_entered"]
|
|
[connection signal="area_exited" from="PlayerDetection" to="." method="_on_area_exited"]
|
|
[connection signal="velocity_computed" from="NavigationAgent2D" to="." method="_on_navigation_agent_2d_velocity_computed"]
|
|
[connection signal="area_entered" from="DamageHitbox" to="." method="_on_damage_hitbox_area_entered"]
|