This commit is contained in:
Marco 2025-02-21 18:57:00 +01:00
commit b07a8fe60d
33 changed files with 594 additions and 58 deletions

View file

@ -146,7 +146,7 @@ metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
modulate = Color(1, 1, 1, 0.784314)
sprite_frames = SubResource("SpriteFrames_h2s1d")
animation = &"Closed"
animation = &"Open"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false

View file

@ -102,7 +102,7 @@ size = Vector2(8, 48)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f2rl6"]
size = Vector2(8, 48)
[node name="Area2D" type="Area2D" groups=["Solid"]]
[node name="VerticalDoor" type="Area2D" groups=["Solid"]]
collision_layer = 64
collision_mask = 154
script = ExtResource("1_e61bg")

View file

@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=3 uid="uid://b0133vafvobxf"]
[ext_resource type="Script" path="res://Scripts/Activables/ScriptableBase.cs" id="1_ggdoq"]
[ext_resource type="Script" path="res://Scripts/Components/AlarmTrigger.cs" id="2_5wlne"]
[node name="ScriptableAlarmTrigger" type="Node2D"]
script = ExtResource("1_ggdoq")
Events = Array[Object]([])
[node name="AlarmTrigger" type="Node2D" parent="." node_paths=PackedStringArray("Target")]
script = ExtResource("2_5wlne")
TriggerType = 1
Target = NodePath("..")

View file

@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://ca6befbx0nurt"]
[ext_resource type="Script" path="res://Scripts/Activables/ScriptableBase.cs" id="1_kxf32"]
[ext_resource type="Script" path="res://Scripts/Components/AlarmTrigger.cs" id="2_kl708"]
[node name="ScriptableEnabledAlarmTrigger" type="Node2D"]
script = ExtResource("1_kxf32")
Events = Array[Object]([])
[node name="AlarmTrigger" type="Node2D" parent="." node_paths=PackedStringArray("Target")]
script = ExtResource("2_kl708")
Target = NodePath("..")

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=11 format=3 uid="uid://d1h48wgasakk4"]
[gd_scene load_steps=14 format=3 uid="uid://d1h48wgasakk4"]
[ext_resource type="Script" path="res://Scripts/Activables/ScriptableBase.cs" id="1_2d4he"]
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="2_2xddf"]
@ -10,26 +10,41 @@
script = ExtResource("2_umsjn")
WaitForCompletion = true
[sub_resource type="AtlasTexture" id="AtlasTexture_uh6p2"]
[sub_resource type="AtlasTexture" id="AtlasTexture_enwfk"]
atlas = ExtResource("2_slydm")
region = Rect2(48, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_8onhd"]
atlas = ExtResource("2_slydm")
region = Rect2(64, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_s6se2"]
atlas = ExtResource("2_slydm")
region = Rect2(80, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_t1vgp"]
atlas = ExtResource("2_slydm")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_wt4ye"]
[sub_resource type="AtlasTexture" id="AtlasTexture_srsfb"]
atlas = ExtResource("2_slydm")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ucweu"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ll0ki"]
atlas = ExtResource("2_slydm")
region = Rect2(0, 0, 16, 16)
region = Rect2(32, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_kbgi5"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_uh6p2")
"texture": SubResource("AtlasTexture_enwfk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wt4ye")
"texture": SubResource("AtlasTexture_8onhd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_s6se2")
}],
"loop": true,
"name": &"alarmed",
@ -37,7 +52,13 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ucweu")
"texture": SubResource("AtlasTexture_t1vgp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_srsfb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ll0ki")
}],
"loop": true,
"name": &"default",
@ -53,8 +74,8 @@ Target = NodePath("..")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_kbgi5")
animation = &"alarmed"
frame_progress = 0.613245
autoplay = "default"
frame_progress = 0.890588
[node name="SpriteSwitcher" type="Node2D" parent="." node_paths=PackedStringArray("_sprite")]
script = ExtResource("5_7g2v5")

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=80 format=4 uid="uid://bv451a8wgty4u"]
[gd_scene load_steps=82 format=4 uid="uid://bv451a8wgty4u"]
[ext_resource type="Script" path="res://Scripts/GameManager.cs" id="1_8tmoj"]
[ext_resource type="PackedScene" uid="uid://bghghp5ep4w2j" path="res://Scenes/player.tscn" id="2_8mh54"]
@ -53,6 +53,7 @@
[ext_resource type="PackedScene" uid="uid://r25rq6ijgm6m" path="res://Scenes/Items/Green_Keycard.tscn" id="36_f8fh1"]
[ext_resource type="PackedScene" uid="uid://dnbtou2fklyvp" path="res://Scenes/Actors/alarm_sign.tscn" id="36_rd6f6"]
[ext_resource type="PackedScene" uid="uid://c8lgk4wnyi1e6" path="res://Scenes/Actors/HealthStation.tscn" id="38_kuhg5"]
[ext_resource type="Script" path="res://Scripts/Resources/Events/AlarmDisableEvent.cs" id="40_7qam0"]
[ext_resource type="Script" path="res://Scripts/Activables/ScriptableBase.cs" id="42_wigyb"]
[ext_resource type="PackedScene" uid="uid://fxvlaidieiv7" path="res://Scenes/Interactable/ScriptableAreaTrigger.tscn" id="43_kf3qc"]
[ext_resource type="Script" path="res://Scripts/Resources/Events/MovePlayerEvent.cs" id="44_klwgh"]
@ -72,6 +73,10 @@ script = ExtResource("7_l32kg")
EggIndex = 0
StartingEquipment = [ExtResource("6_khabp")]
[sub_resource type="Resource" id="Resource_hppa0"]
script = ExtResource("40_7qam0")
WaitForCompletion = true
[sub_resource type="Resource" id="Resource_5er5x"]
script = ExtResource("49_0si7g")
Target = NodePath("../Factory Tilemaps/Teleporter")
@ -131,7 +136,7 @@ ActivationType = 0
Targets = Array[NodePath]([NodePath("../Rumia")])
WaitForCompletion = true
[sub_resource type="Resource" id="Resource_l7eh7"]
[sub_resource type="Resource" id="Resource_gr3ii"]
resource_local_to_scene = true
script = ExtResource("49_0si7g")
Target = NodePath(".")
@ -366,6 +371,7 @@ Target = NodePath("../HorizontalDoor")
[node name="AlarmBox" parent="Factory Tilemaps" instance=ExtResource("17_dppcs")]
position = Vector2(-713, -153)
Events = Array[Object]([SubResource("Resource_hppa0")])
[node name="Turret" parent="Factory Tilemaps" instance=ExtResource("18_6y85f")]
position = Vector2(-1076, 125)
@ -526,9 +532,11 @@ Target = NodePath("../Factory Tilemaps/HorizontalDoor4")
[node name="AlarmBox" parent="." instance=ExtResource("17_dppcs")]
position = Vector2(-1174, 133)
Events = Array[Object]([SubResource("Resource_hppa0")])
[node name="AlarmBox2" parent="." instance=ExtResource("17_dppcs")]
position = Vector2(-1506, -188)
Events = Array[Object]([SubResource("Resource_hppa0")])
[node name="LevelStartTrigger" parent="." instance=ExtResource("43_kf3qc")]
position = Vector2(-808, -167)
@ -620,7 +628,7 @@ Events = Array[Object]([SubResource("Resource_068l7"), SubResource("Resource_l3n
[node name="BossBattleStartScript" parent="." instance=ExtResource("43_kf3qc")]
position = Vector2(-1487, -396)
Events = Array[Object]([SubResource("Resource_4f4id"), SubResource("Resource_s2o7m"), SubResource("Resource_b1dht"), SubResource("Resource_xrgpy"), SubResource("Resource_l7eh7")])
Events = Array[Object]([SubResource("Resource_4f4id"), SubResource("Resource_s2o7m"), SubResource("Resource_b1dht"), SubResource("Resource_xrgpy"), SubResource("Resource_gr3ii")])
[node name="Enemy8" parent="." instance=ExtResource("47_u1ve6")]
position = Vector2(-968, 206)