netmasked/scenes/boss_arena.tscn

240 lines
9.8 KiB
Text

[gd_scene format=3 uid="uid://bp2lov56tjht4"]
[ext_resource type="Texture2D" uid="uid://crs865o7rclhe" path="res://assets/enviroment/arena.png" id="1_7okkn"]
[ext_resource type="PackedScene" uid="uid://ncgwx0yjn2gt" path="res://scenes/player.tscn" id="2_84w8w"]
[ext_resource type="Texture2D" uid="uid://bb7yept5f8ya0" path="res://assets/vfx/danger_round.png" id="3_6wr5o"]
[ext_resource type="Script" uid="uid://clccy2s0llda3" path="res://scenes/boss_machine.gd" id="3_84w8w"]
[ext_resource type="PackedScene" uid="uid://b5m10vpq0kk8n" path="res://scenes/boss_spawner.tscn" id="4_cwigj"]
[ext_resource type="Texture2D" uid="uid://cyrbml83j7s7b" path="res://assets/vfx/cable.png" id="5_nvwov"]
[ext_resource type="Script" uid="uid://ejd25ul4j5pp" path="res://scripts/hitbox.gd" id="6_io3m0"]
[ext_resource type="Texture2D" uid="uid://1wosmyr2md2i" path="res://assets/bosses/chica-2.png" id="7_6wr5o"]
[ext_resource type="Script" uid="uid://dr78dot5agp2p" path="res://scripts/cable.gd" id="8_cwigj"]
[ext_resource type="Texture2D" uid="uid://bu5dfvirq7mxq" path="res://assets/bosses/cajita.png" id="8_t0ayj"]
[ext_resource type="Script" uid="uid://mc1fw6f5texh" path="res://scripts/line_connect.gd" id="10_nvwov"]
[ext_resource type="Texture2D" uid="uid://onur5q1rodqt" path="res://assets/bosses/claw-1.png" id="10_vfq8f"]
[ext_resource type="Texture2D" uid="uid://bo3g57ir520jf" path="res://assets/bosses/claw-2.png" id="11_nvwov"]
[ext_resource type="Texture2D" uid="uid://x4frpycwroby" path="res://assets/bosses/claw-3.png" id="12_1400f"]
[ext_resource type="Texture2D" uid="uid://cqq6a8fjw8k7b" path="res://assets/bosses/claw-4.png" id="13_4pbd4"]
[ext_resource type="Texture2D" uid="uid://cnkgyhhnig57y" path="res://assets/bosses/tubito.png" id="14_0dfqf"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_cwigj"]
vertices = PackedVector2Array(665.21094, -180.10156, 674.77344, 257.85938, -333.97656, 245.13281, -290.95313, -190.89063)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3)])
outlines = Array[PackedVector2Array]([PackedVector2Array(-300, -201, 675, -190, 685, 268, -345, 255)])
[sub_resource type="Animation" id="Animation_6wr5o"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("MovePoint/Claw:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(2, -224.99994)]
}
[sub_resource type="Animation" id="Animation_cwigj"]
resource_name = "grab"
length = 1.5
tracks/0/type = "method"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.7),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"spawn_enemies"
}]
}
[sub_resource type="Animation" id="Animation_vi6v3"]
resource_name = "smash"
length = 1.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("MovePoint/Hitbox:monitoring")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2, 0.52),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [false, true, false]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("MovePoint/Claw:position")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.13333334, 0.2, 0.3, 0.81),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(2, -224.99994), Vector2(2, -18), Vector2(2, -24), Vector2(2, -18), Vector2(2, -224.99994)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_cwigj"]
_data = {
&"RESET": SubResource("Animation_6wr5o"),
&"grab": SubResource("Animation_cwigj"),
&"smash": SubResource("Animation_vi6v3")
}
[sub_resource type="RectangleShape2D" id="RectangleShape2D_i50kd"]
size = Vector2(115, 60.500046)
[sub_resource type="SpriteFrames" id="SpriteFrames_ix723"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("10_vfq8f")
}, {
"duration": 1.0,
"texture": ExtResource("12_1400f")
}, {
"duration": 1.0,
"texture": ExtResource("11_nvwov")
}, {
"duration": 1.0,
"texture": ExtResource("13_4pbd4")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="BossArena" type="Node2D" unique_id=1817081539]
[node name="Arena" type="Sprite2D" parent="." unique_id=138900999]
z_index = -2
position = Vector2(491, 321)
texture = ExtResource("1_7okkn")
[node name="NavigationRegion2D" type="NavigationRegion2D" parent="." unique_id=956156033]
position = Vector2(332, 406)
navigation_polygon = SubResource("NavigationPolygon_cwigj")
[node name="Player" parent="." unique_id=1743724931 instance=ExtResource("2_84w8w")]
position = Vector2(332, 406)
[node name="BossMachine" type="Node2D" parent="." unique_id=1366822299 node_paths=PackedStringArray("spawn_points", "anim_player", "movable")]
script = ExtResource("3_84w8w")
spawn_points = NodePath("Spanwpoints")
spawn_scene = ExtResource("4_cwigj")
anim_player = NodePath("AnimationPlayer")
movable = NodePath("MovePoint")
[node name="Cable" type="Line2D" parent="BossMachine" unique_id=1685386266 node_paths=PackedStringArray("target_a", "target_b")]
z_index = -1
texture_repeat = 2
points = PackedVector2Array(400, 54.00006, 433.4146, 90.60722, 455.5857, 112.35656, 478.41217, 132.03459, 501.99182, 149.33456, 526.36475, 163.98936, 551.5204, 175.74184, 577.39026, 184.33817, 603.8364, 189.54301, 630.6511, 191.17232, 657.5769, 189.12798, 684.3383, 183.41934, 710.6758, 174.16643, 736.37134, 161.5936, 761.3873, 145.8899, 785.66644, 127.2229, 809.08386, 105.892075, 831.61316, 82.49083, 853.4609, 57.882732, 875, 33)
width = 4.28
texture = ExtResource("5_nvwov")
texture_mode = 1
joint_mode = 2
script = ExtResource("8_cwigj")
target_a = NodePath("../MovePoint/Cajita/CableEnd")
target_b = NodePath("CableStart")
[node name="CableStart" type="Marker2D" parent="BossMachine/Cable" unique_id=895744519]
position = Vector2(875, 33)
[node name="LineConnect" type="Line2D" parent="BossMachine" unique_id=829074019 node_paths=PackedStringArray("p1", "p2")]
position = Vector2(339, 52.00003)
points = PackedVector2Array(-9, 32.99997, -9, 81.99997)
width = 30.0
texture = ExtResource("14_0dfqf")
texture_mode = 2
script = ExtResource("10_nvwov")
p1 = NodePath("../MovePoint/Cajita/ShaftStart")
p2 = NodePath("../MovePoint/Claw/ShaftEnd")
[node name="Cable2" type="Line2D" parent="BossMachine" unique_id=1698104848 node_paths=PackedStringArray("target_a", "target_b")]
z_index = -1
texture_repeat = 2
points = PackedVector2Array(375, 16, 373.8593, 43.191643, 373.0625, 61.10778, 372.23343, 78.42529, 371.35992, 95.06819, 370.42853, 110.982735, 369.4226, 126.13191, 368.31882, 140.49055, 367.08148, 154.0409, 365.65115, 166.7671, 363.91754, 178.64566, 361.64096, 189.61905, 358.13318, 199.45197, 350.2255, 205.54736, 343.66098, 196.34799, 340.47632, 184.70204, 338.34995, 172.23978, 336.70596, 159.31265, 335.30392, 146.16144, 334, 133)
width = 5.825
texture = ExtResource("5_nvwov")
texture_mode = 1
joint_mode = 2
script = ExtResource("8_cwigj")
target_a = NodePath("../MovePoint/Cajita/CableStart")
target_b = NodePath("../MovePoint/Claw/CableEnd2")
rope_length = 200.0
iterations = 10
[node name="AnimationPlayer" type="AnimationPlayer" parent="BossMachine" unique_id=1359039881]
libraries/ = SubResource("AnimationLibrary_cwigj")
[node name="Spanwpoints" type="Node2D" parent="BossMachine" unique_id=4456145]
[node name="Marker2D" type="Marker2D" parent="BossMachine/Spanwpoints" unique_id=1979901668]
position = Vector2(846, 351)
[node name="Marker2D2" type="Marker2D" parent="BossMachine/Spanwpoints" unique_id=887716747]
position = Vector2(855, 558)
[node name="Marker2D3" type="Marker2D" parent="BossMachine/Spanwpoints" unique_id=786929856]
position = Vector2(221, 521)
[node name="Marker2D4" type="Marker2D" parent="BossMachine/Spanwpoints" unique_id=468086628]
position = Vector2(228, 334)
[node name="Girl" type="Sprite2D" parent="BossMachine" unique_id=927639132]
position = Vector2(470, 200)
texture = ExtResource("7_6wr5o")
[node name="MovePoint" type="Node2D" parent="BossMachine" unique_id=1751762232]
position = Vector2(330, 427)
[node name="Cajita" type="Sprite2D" parent="BossMachine/MovePoint" unique_id=2011291166]
position = Vector2(9, -374.99997)
texture = ExtResource("8_t0ayj")
[node name="CableStart" type="Marker2D" parent="BossMachine/MovePoint/Cajita" unique_id=1979592832]
position = Vector2(36, -36.00003)
[node name="ShaftStart" type="Marker2D" parent="BossMachine/MovePoint/Cajita" unique_id=1442721591]
position = Vector2(-9, 32.99997)
[node name="CableEnd" type="Marker2D" parent="BossMachine/MovePoint/Cajita" unique_id=200717428]
position = Vector2(61, 2.0000305)
[node name="Hitbox" type="Area2D" parent="BossMachine/MovePoint" unique_id=713433656]
monitoring = false
script = ExtResource("6_io3m0")
from_player = false
metadata/_custom_type_script = "uid://ejd25ul4j5pp"
[node name="CollisionShape2D" type="CollisionShape2D" parent="BossMachine/MovePoint/Hitbox" unique_id=1479358985]
shape = SubResource("RectangleShape2D_i50kd")
[node name="Claw" type="AnimatedSprite2D" parent="BossMachine/MovePoint" unique_id=218316761]
z_as_relative = false
position = Vector2(2, -224.99994)
sprite_frames = SubResource("SpriteFrames_ix723")
frame = 3
frame_progress = 0.31943718
[node name="CableEnd2" type="Marker2D" parent="BossMachine/MovePoint/Claw" unique_id=241840135]
position = Vector2(2, -69.00006)
[node name="ShaftEnd" type="Marker2D" parent="BossMachine/MovePoint/Claw" unique_id=1645182021]
position = Vector2(-2, -68.00006)
[node name="DangerRound" type="Sprite2D" parent="BossMachine/MovePoint" unique_id=2022174099]
self_modulate = Color(1, 0.22745098, 0.42352942, 1)
z_index = -1
position = Vector2(1, 3.0517578e-05)
scale = Vector2(4, 2.96)
texture = ExtResource("3_6wr5o")