This commit is contained in:
MaddoScientisto 2025-02-21 21:37:24 +01:00
commit 54bf15d93d
23 changed files with 313 additions and 75 deletions

View file

@ -1,53 +1,66 @@
[gd_scene load_steps=16 format=3 uid="uid://l84on3kv2s52"]
[gd_scene load_steps=22 format=3 uid="uid://l84on3kv2s52"]
[ext_resource type="Script" path="res://Scripts/Door.cs" id="1_emfh4"]
[ext_resource type="Texture2D" uid="uid://d4ialp36plt7v" path="res://Sprites/Actors/Doors/horizontal_door_1.png" id="2_2h3ih"]
[ext_resource type="Texture2D" uid="uid://desg0e2phtw50" path="res://Sprites/HorizontalDoor.png" id="2_rnx3o"]
[sub_resource type="AtlasTexture" id="AtlasTexture_awtxv"]
atlas = ExtResource("2_rnx3o")
[sub_resource type="AtlasTexture" id="AtlasTexture_2qgx7"]
atlas = ExtResource("2_2h3ih")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ocjdv"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_w2qco"]
atlas = ExtResource("2_2h3ih")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_we0if"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_3xj8k"]
atlas = ExtResource("2_2h3ih")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_em3e7"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 32, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ics4i"]
atlas = ExtResource("2_2h3ih")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_fehs4"]
atlas = ExtResource("2_rnx3o")
[sub_resource type="AtlasTexture" id="AtlasTexture_1nga0"]
atlas = ExtResource("2_2h3ih")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_0bwul"]
atlas = ExtResource("2_2h3ih")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_g8abm"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_nu0m6"]
atlas = ExtResource("2_2h3ih")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_8tyvt"]
atlas = ExtResource("2_rnx3o")
[sub_resource type="AtlasTexture" id="AtlasTexture_4m6na"]
atlas = ExtResource("2_2h3ih")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_th1qr"]
atlas = ExtResource("2_2h3ih")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_o1fq1"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 32, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_br2ct"]
atlas = ExtResource("2_2h3ih")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_wvr8p"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ektml"]
atlas = ExtResource("2_2h3ih")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_t3pwa"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_m0l4n"]
atlas = ExtResource("2_2h3ih")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_hcys5"]
atlas = ExtResource("2_2h3ih")
region = Rect2(128, 0, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_keeml"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_awtxv")
"texture": SubResource("AtlasTexture_2qgx7")
}],
"loop": true,
"name": &"Closed",
@ -55,16 +68,19 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ocjdv")
"texture": SubResource("AtlasTexture_w2qco")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_we0if")
"texture": SubResource("AtlasTexture_3xj8k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_em3e7")
"texture": SubResource("AtlasTexture_ics4i")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fehs4")
"texture": SubResource("AtlasTexture_1nga0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0bwul")
}],
"loop": false,
"name": &"Closing",
@ -72,7 +88,15 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_g8abm")
"texture": SubResource("AtlasTexture_nu0m6")
}],
"loop": true,
"name": &"Destroyed",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_4m6na")
}],
"loop": true,
"name": &"Open",
@ -80,16 +104,19 @@ animations = [{
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_8tyvt")
"texture": SubResource("AtlasTexture_th1qr")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_o1fq1")
"texture": SubResource("AtlasTexture_br2ct")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wvr8p")
"texture": SubResource("AtlasTexture_ektml")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t3pwa")
"texture": SubResource("AtlasTexture_m0l4n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hcys5")
}],
"loop": false,
"name": &"Opening",
@ -102,6 +129,21 @@ size = Vector2(32, 32)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f2rl6"]
size = Vector2(32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_o7w0f"]
atlas = ExtResource("2_rnx3o")
region = Rect2(0, 96, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_8stvs"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_o7w0f")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="HorizontalDoor" type="Area2D" groups=["Solid"]]
collision_layer = 64
collision_mask = 154
@ -110,7 +152,7 @@ metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_keeml")
animation = &"Open"
animation = &"Closed"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
@ -125,4 +167,8 @@ gravity_scale = 0.0
visible = false
shape = SubResource("RectangleShape2D_f2rl6")
[node name="DoorFrame" type="AnimatedSprite2D" parent="."]
z_index = 1
sprite_frames = SubResource("SpriteFrames_8stvs")
[connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=4 format=3 uid="uid://bemu3l6b1e84y"]
[gd_scene load_steps=5 format=3 uid="uid://bemu3l6b1e84y"]
[ext_resource type="Script" path="res://Scripts/UI/DebugMenu.cs" id="1_5vtnj"]
[ext_resource type="Theme" uid="uid://dkom8gcup42kd" path="res://Resources/Styles/DebugMenuButtons.tres" id="2_6il8q"]
[ext_resource type="Theme" uid="uid://dnsadvmunm76k" path="res://Resources/Styles/MainMenuButtons.tres" id="2_wqb8e"]
[ext_resource type="Resource" uid="uid://d1lc8lhq1b05p" path="res://Resources/Debug/DebugLevels.tres" id="3_cvgqx"]
@ -11,7 +12,7 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_5vtnj")
ButtonTheme = ExtResource("2_wqb8e")
ButtonTheme = ExtResource("2_6il8q")
Levels = ExtResource("3_cvgqx")
ButtonsContainer = NodePath("ScrollContainer/Level Select")
@ -43,6 +44,7 @@ size_flags_vertical = 3
[node name="BackButton" type="Button" parent="ScrollContainer/Level Select"]
layout_mode = 2
theme = ExtResource("2_wqb8e")
theme_override_font_sizes/font_size = 10
text = "Back"
[connection signal="pressed" from="ScrollContainer/Level Select/BackButton" to="." method="_on_back_button_pressed"]

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=17 format=4 uid="uid://bx31ou6tw3kd1"]
[gd_scene load_steps=19 format=4 uid="uid://bx31ou6tw3kd1"]
[ext_resource type="Script" path="res://Scripts/GameManager.cs" id="1_jpse7"]
[ext_resource type="PackedScene" uid="uid://bghghp5ep4w2j" path="res://Scenes/player.tscn" id="2_4hnih"]
@ -7,6 +7,7 @@
[ext_resource type="Script" path="res://Scripts/InventoryManager.cs" id="3_5wmap"]
[ext_resource type="PackedScene" uid="uid://crry0rgk7a8sm" path="res://Scenes/Weapons/BaseWeapon.tscn" id="3_au7nm"]
[ext_resource type="PackedScene" uid="uid://dkwi1hu1bixoe" path="res://Scenes/HUD/HUD.tscn" id="4_js5qv"]
[ext_resource type="Script" path="res://Scripts/Resources/MapStartDataResource.cs" id="4_ls56o"]
[ext_resource type="PackedScene" uid="uid://byms2dhliyux0" path="res://Scenes/Actors/teleporter.tscn" id="4_tlevr"]
[ext_resource type="Script" path="res://Scenes/CameraTarget.gd" id="5_cjdx6"]
[ext_resource type="PackedScene" uid="uid://l84on3kv2s52" path="res://Scenes/Door_Horizontal.tscn" id="5_pqyv2"]
@ -16,17 +17,24 @@
[ext_resource type="Script" path="res://Scripts/Resources/Events/DialogueStartEvent.cs" id="7_u7oae"]
[ext_resource type="PackedScene" uid="uid://crph24e6e0v0q" path="res://Scenes/Interactable/Control_Pad.tscn" id="9_700kw"]
[sub_resource type="Resource" id="Resource_53p3c"]
script = ExtResource("4_ls56o")
EggIndex = 0
StartingEquipment = [null]
[sub_resource type="Resource" id="Resource_0oces"]
script = ExtResource("7_u7oae")
TimelineName = "rumia_rebel_base_1"
WaitForCompletion = true
[node name="GameScene" type="Node2D" node_paths=PackedStringArray("PlayerSpawnMarker")]
[node name="GameScene" type="Node2D"]
script = ExtResource("1_jpse7")
PlayerTemplate = ExtResource("2_4hnih")
PlayerSpawnMarker = NodePath("PlayerStartPosition")
SpawnMarkers = {
0: NodePath("PlayerStartPosition")
}
WeaponTemplate = ExtResource("3_au7nm")
StartingEquipment = Array[Object]([])
MapStartData = SubResource("Resource_53p3c")
[node name="Tilemaps" type="Node2D" parent="."]
@ -63,7 +71,7 @@ State = 1
position = Vector2(47, 496)
State = 1
[node name="Rumia" type="Node2D" parent="Tilemaps/Actors"]
[node name="Rumia" type="Node2D" parent="Tilemaps/Actors" groups=["Interactable"]]
position = Vector2(216, 386)
script = ExtResource("6_tf4ep")
Events = Array[Object]([SubResource("Resource_0oces")])
@ -75,6 +83,9 @@ texture = ExtResource("6_8wgb2")
[node name="ControlPad" parent="Tilemaps/Actors/Rumia" node_paths=PackedStringArray("Target") instance=ExtResource("9_700kw")]
Target = NodePath("..")
[node name="ControlPad" parent="Tilemaps" instance=ExtResource("9_700kw")]
position = Vector2(165, 372)
[node name="CameraController" type="Camera2D" parent="."]
script = ExtResource("2_pu05b")
pixel_snap = false

View file

@ -136,7 +136,7 @@ ActivationType = 0
Targets = Array[NodePath]([NodePath("../Rumia")])
WaitForCompletion = true
[sub_resource type="Resource" id="Resource_gr3ii"]
[sub_resource type="Resource" id="Resource_k3uvk"]
resource_local_to_scene = true
script = ExtResource("49_0si7g")
Target = NodePath(".")
@ -628,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_gr3ii")])
Events = Array[Object]([SubResource("Resource_4f4id"), SubResource("Resource_s2o7m"), SubResource("Resource_b1dht"), SubResource("Resource_xrgpy"), SubResource("Resource_k3uvk")])
[node name="Enemy8" parent="." instance=ExtResource("47_u1ve6")]
position = Vector2(-968, 206)