Complete C# rewrite with working game in Editor (#6)
* Refactor collectable components to C# and update resource scripts for consistency * Update resource paths and refactor properties for consistency * Refactor UI components to inherit from Control and update node paths for consistency * Update node paths and group assignments for consistency across scenes * Refactor GameManager and PlayerDeathComponent for improved state management and logging; update scene connections for player death handling * Add PhantomCamera components and UI elements for improved scene management; refactor existing components for better integration * Refactor skill components and update resource paths for consistency; enhance skill management in scenes * Add new UID files and update scene configurations for dialogue components; refactor skill management and input handling * Add next level command and refactor player retrieval in GameManager; update scene files for consistency * Add skill upgrade system and refactor skill components for enhanced functionality; update resource paths and configurations * Enhance ChargeProgressBar and Marketplace functionality; add owner exit handling and update skill button states * Refactor ChargeProgressBar and SkillManager; update skill handling and improve component interactions * Refactor player and level configurations; streamline FlipPlayerComponent and reposition Spaceship Enter
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=24 format=4 uid="uid://bol7g83v2accs"]
|
||||
[gd_scene load_steps=22 format=4 uid="uid://bol7g83v2accs"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bqi5s710xb1ju" path="res://objects/entities/brick_player.tscn" id="1_dnj2y"]
|
||||
[ext_resource type="PackedScene" uid="uid://cawlpch2lk3a2" path="res://objects/level/world_environment.tscn" id="2_1vw1j"]
|
||||
@@ -12,8 +12,6 @@
|
||||
[ext_resource type="TileSet" uid="uid://cu2sx7qigrqnv" path="res://resources/tilesets/village/terain.tres" id="9_ttvjm"]
|
||||
[ext_resource type="TileSet" uid="uid://bc5a20s6kuy8e" path="res://resources/tilesets/village/entities.tres" id="10_ei558"]
|
||||
[ext_resource type="TileSet" uid="uid://bbppo0irxdmqy" path="res://resources/tilesets/village/foreground.tres" id="11_w7c5i"]
|
||||
[ext_resource type="Script" uid="uid://8r1y8elyw7kt" path="res://scripts/console_management.gd" id="12_2tg3u"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqom4cm7r18db" path="res://objects/entities/killzone.tscn" id="13_tvdre"]
|
||||
[ext_resource type="PackedScene" uid="uid://d0s2abysa86rq" path="res://objects/entities/child.tscn" id="15_vqevu"]
|
||||
[ext_resource type="PackedScene" uid="uid://12jnkdygpxwc" path="res://objects/entities/exit_level.tscn" id="16_chnw1"]
|
||||
[ext_resource type="PackedScene" uid="uid://b4pdt1gv2ymyi" path="res://objects/tooltip.tscn" id="18_4bhfj"]
|
||||
@@ -59,23 +57,30 @@ ease = 2
|
||||
[node name="Brick Player" parent="." instance=ExtResource("1_dnj2y")]
|
||||
z_index = 10
|
||||
|
||||
[node name="HitParticles" parent="Brick Player" index="27"]
|
||||
[node name="HitParticles" parent="Brick Player" index="26"]
|
||||
process_material = SubResource("ParticleProcessMaterial_lgb3u")
|
||||
|
||||
[node name="WorldEnvironment" parent="." instance=ExtResource("2_1vw1j")]
|
||||
|
||||
[node name="UI Layer" parent="." instance=ExtResource("3_4fsls")]
|
||||
|
||||
[node name="HUD" parent="UI Layer" index="0" node_paths=PackedStringArray("player_health")]
|
||||
player_health = NodePath("../../Brick Player/HealthComponent")
|
||||
[node name="HUD" parent="UI Layer" index="0" node_paths=PackedStringArray("Health")]
|
||||
Health = NodePath("../../Brick Player/HealthComponent")
|
||||
|
||||
[node name="DeathScreen" parent="UI Layer" index="1" node_paths=PackedStringArray("nodes_to_disable")]
|
||||
current_level = ExtResource("4_onnch")
|
||||
nodes_to_disable = [NodePath("../../Brick Player")]
|
||||
[node name="DeathScreen" parent="UI Layer" index="1" node_paths=PackedStringArray("NodesToDisable")]
|
||||
CurrentLevel = ExtResource("4_onnch")
|
||||
NodesToDisable = [NodePath("../../Brick Player")]
|
||||
|
||||
[node name="Marketplace" parent="UI Layer" index="3" node_paths=PackedStringArray("skill_unlocker", "components_to_disable")]
|
||||
skill_unlocker = NodePath("../../Brick Player/SkillUnlockerComponent")
|
||||
components_to_disable = [NodePath("../../Brick Player")]
|
||||
[node name="Marketplace" parent="UI Layer" index="3" node_paths=PackedStringArray("SkillUnlockerComponent", "ComponentsToDisable")]
|
||||
SkillUnlockerComponent = NodePath("../../Brick Player/SkillUnlockerComponent")
|
||||
ComponentsToDisable = [NodePath("../../Brick Player")]
|
||||
|
||||
[node name="Pause menu" parent="UI Layer" index="4" node_paths=PackedStringArray("SettingsControl")]
|
||||
SettingsControl = NodePath("../Settings menu")
|
||||
|
||||
[node name="Settings menu" parent="UI Layer" index="5" node_paths=PackedStringArray("InputSettingsControl", "AudioSettingsControl")]
|
||||
InputSettingsControl = NodePath("../Input Settings")
|
||||
AudioSettingsControl = NodePath("../Audio settings")
|
||||
|
||||
[node name="Global Light" parent="." instance=ExtResource("4_mc58c")]
|
||||
|
||||
@@ -111,16 +116,6 @@ tile_set = ExtResource("10_ei558")
|
||||
[node name="Foreground layer" type="TileMapLayer" parent="."]
|
||||
tile_set = ExtResource("11_w7c5i")
|
||||
|
||||
[node name="ConsoleManagement" type="Node" parent="." node_paths=PackedStringArray("player_health", "skill_unlocker", "skill_manager")]
|
||||
script = ExtResource("12_2tg3u")
|
||||
player_health = NodePath("../Brick Player/HealthComponent")
|
||||
skill_unlocker = NodePath("../Brick Player/SkillUnlockerComponent")
|
||||
skill_manager = NodePath("../Brick Player/SkillManager")
|
||||
metadata/_custom_type_script = "uid://8r1y8elyw7kt"
|
||||
|
||||
[node name="Killzone" parent="." instance=ExtResource("13_tvdre")]
|
||||
position = Vector2(215, 324)
|
||||
|
||||
[node name="Child" parent="." instance=ExtResource("15_vqevu")]
|
||||
position = Vector2(-162, -256)
|
||||
|
||||
@@ -129,18 +124,18 @@ position = Vector2(1485, 25)
|
||||
|
||||
[node name="Tooltip" parent="." instance=ExtResource("18_4bhfj")]
|
||||
position = Vector2(712, -343)
|
||||
text = "LEVEL_1_TOOLTIP_1"
|
||||
Text = "LEVEL_1_TOOLTIP_1"
|
||||
|
||||
[node name="Tooltip2" parent="." instance=ExtResource("18_4bhfj")]
|
||||
position = Vector2(552, 25)
|
||||
text = "LEVEL_1_TOOLTIP_2"
|
||||
Text = "LEVEL_1_TOOLTIP_2"
|
||||
|
||||
[node name="Tooltip3" parent="." instance=ExtResource("18_4bhfj")]
|
||||
position = Vector2(-59, -247)
|
||||
text = "LEVEL_1_TOOLTIP_3"
|
||||
Text = "LEVEL_1_TOOLTIP_3"
|
||||
|
||||
[connection signal="on_death" from="Brick Player/HealthComponent" to="UI Layer/DeathScreen" method="on_player_death"]
|
||||
[connection signal="on_death" from="Brick Player/HealthComponent" to="UI Layer/GameOverScreen" method="on_player_death"]
|
||||
[connection signal="Death" from="Brick Player/HealthComponent" to="UI Layer/DeathScreen" method="OnPlayerDeath"]
|
||||
[connection signal="Death" from="Brick Player/HealthComponent" to="UI Layer/GameOverScreen" method="OnPlayerDeath"]
|
||||
|
||||
[editable path="Brick Player"]
|
||||
[editable path="UI Layer"]
|
||||
|
@@ -1,9 +1,8 @@
|
||||
[gd_scene load_steps=27 format=4 uid="uid://chqb11pfoqmeb"]
|
||||
[gd_scene load_steps=24 format=4 uid="uid://chqb11pfoqmeb"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bqi5s710xb1ju" path="res://objects/entities/brick_player.tscn" id="1_wcma7"]
|
||||
[ext_resource type="PackedScene" uid="uid://cawlpch2lk3a2" path="res://objects/level/world_environment.tscn" id="2_ot3dy"]
|
||||
[ext_resource type="PackedScene" uid="uid://6foggu31cu14" path="res://objects/level/ui_layer.tscn" id="3_cjqhe"]
|
||||
[ext_resource type="Resource" uid="uid://dlwkbjw1l33uq" path="res://resources/levels/village/village_2.tres" id="4_h4uvs"]
|
||||
[ext_resource type="PackedScene" uid="uid://cywsu7yrtjdog" path="res://objects/level/global_light.tscn" id="4_wykfl"]
|
||||
[ext_resource type="PackedScene" uid="uid://cb0mnye1ki5a6" path="res://objects/level/camera_2d.tscn" id="5_8nvkd"]
|
||||
[ext_resource type="Script" uid="uid://d23haq52m7ulv" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="6_ono4h"]
|
||||
@@ -12,9 +11,7 @@
|
||||
[ext_resource type="TileSet" uid="uid://cu2sx7qigrqnv" path="res://resources/tilesets/village/terain.tres" id="9_lqbd7"]
|
||||
[ext_resource type="TileSet" uid="uid://bc5a20s6kuy8e" path="res://resources/tilesets/village/entities.tres" id="10_4r26m"]
|
||||
[ext_resource type="TileSet" uid="uid://bbppo0irxdmqy" path="res://resources/tilesets/village/foreground.tres" id="11_r0ngp"]
|
||||
[ext_resource type="Script" uid="uid://8r1y8elyw7kt" path="res://scripts/console_management.gd" id="12_78lb3"]
|
||||
[ext_resource type="TileSet" uid="uid://ccffmjebvuoaj" path="res://resources/tilesets/village/small_foreground.tres" id="13_lc0ll"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqom4cm7r18db" path="res://objects/entities/killzone.tscn" id="13_sw2hn"]
|
||||
[ext_resource type="PackedScene" uid="uid://12jnkdygpxwc" path="res://objects/entities/exit_level.tscn" id="15_hcsb6"]
|
||||
[ext_resource type="PackedScene" uid="uid://d0s2abysa86rq" path="res://objects/entities/child.tscn" id="16_lc0ll"]
|
||||
[ext_resource type="PackedScene" uid="uid://to2xnqev0pu1" path="res://objects/entities/cage.tscn" id="17_h4uvs"]
|
||||
@@ -62,23 +59,19 @@ ease = 2
|
||||
[node name="Brick Player" parent="." instance=ExtResource("1_wcma7")]
|
||||
z_index = 1
|
||||
|
||||
[node name="HitParticles" parent="Brick Player" index="27"]
|
||||
[node name="HitParticles" parent="Brick Player" index="26"]
|
||||
process_material = SubResource("ParticleProcessMaterial_lgb3u")
|
||||
|
||||
[node name="WorldEnvironment" parent="." instance=ExtResource("2_ot3dy")]
|
||||
|
||||
[node name="UI Layer" parent="." instance=ExtResource("3_cjqhe")]
|
||||
|
||||
[node name="HUD" parent="UI Layer" index="0" node_paths=PackedStringArray("player_health")]
|
||||
player_health = NodePath("../../Brick Player/HealthComponent")
|
||||
[node name="HUD" parent="UI Layer" index="0" node_paths=PackedStringArray("Health")]
|
||||
Health = NodePath("../../Brick Player/HealthComponent")
|
||||
|
||||
[node name="DeathScreen" parent="UI Layer" index="1" node_paths=PackedStringArray("nodes_to_disable")]
|
||||
current_level = ExtResource("4_h4uvs")
|
||||
nodes_to_disable = [NodePath("../../Brick Player")]
|
||||
|
||||
[node name="Marketplace" parent="UI Layer" index="3" node_paths=PackedStringArray("skill_unlocker", "components_to_disable")]
|
||||
skill_unlocker = NodePath("../../Brick Player/SkillUnlockerComponent")
|
||||
components_to_disable = [NodePath("../../Brick Player")]
|
||||
[node name="Marketplace" parent="UI Layer" index="3" node_paths=PackedStringArray("SkillUnlockerComponent", "ComponentsToDisable")]
|
||||
SkillUnlockerComponent = NodePath("../../Brick Player/SkillUnlockerComponent")
|
||||
ComponentsToDisable = [NodePath("../../Brick Player")]
|
||||
|
||||
[node name="Global Light" parent="." instance=ExtResource("4_wykfl")]
|
||||
|
||||
@@ -124,16 +117,6 @@ tile_set = ExtResource("11_r0ngp")
|
||||
tile_map_data = PackedByteArray("AABw/ykAAAABAAAAAABr/ykAAAAAAAAAAABn/ykAAAACAAAAAABl/ykAAAABAAAAAABj/ykAAAACAAAAAABh/ykAAAABAAAAAABa/ykAAAABAAAAAABY/ykAAAACAAAAAABU/ykAAAADAAAAAABP/ykAAAAAAAAAAACD/ykAAAABAAAAAACO/ykAAAACAAAAAACT/ykAAAABAAAAAACV/ykAAAAAAAAAAACa/ykAAAADAAAAAACq/ykAAAACAAAAAACr/ykAAAAAAAAAAADi/wMAAAAAAAAAAADk/wMAAAACAAAAAADp/wMAAAABAAAAAADs/wMAAAAAAAAAAADt/wMAAAABAAAAAADx/wMAAAADAAAAAADy/wMAAAAAAAAAAADz/wMAAAACAAAAAAD0/wMAAAADAAAAAAD5/wMAAAAAAAAAAAD6/wMAAAAAAAAAAAD7/wMAAAABAAAAAAACAAMAAAABAAAAAAAJAAMAAAABAAAAAAANAAMAAAAAAAAAAAAUAAMAAAABAAAAAAAYAAMAAAADAAAAAAAaAAMAAAADAAAAAAAcAAMAAAACAAAAAAAgAAMAAAAAAAAAAAAiAAMAAAACAAAAAAAmAAMAAAADAAAAAAAoAAMAAAAAAAAAAABGAAMAAAADAAAAAABEAAMAAAACAAAAAABCAAMAAAABAAAAAAA8AAMAAAACAAAAAAA3AAMAAAACAAAAAAA0AAMAAAADAAAAAAAxAAMAAAADAAAAAAAwAAMAAAACAAAAAAAfAAMAAAAAAAAAAAATAAMAAAAAAAAAAAASAAMAAAABAAAAAAAOAAMAAAAAAAAAAABWAAUAAAABAAAAAABZAAUAAAADAAAAAABaAAUAAAABAAAAAABkAAUAAAACAAAAAAB1AAUAAAADAAAAAAB2AAUAAAABAAAAAAB/AAUAAAADAAAAAACsAO//AAAAAAAAAACrAO//AAACAAAAAACnAO//AAACAAAAAACgAO//AAABAAAAAACVAO//AAACAAAAAACUAO//AAADAAAAAACTAO//AAACAAAAAACNAO//AAAAAAAAAACxANX/AAABAAAAAACzANX/AAACAAAAAAC7ANX/AAACAAAAAADBANX/AAACAAAAAADDANX/AAABAAAAAADMANX/AAABAAAAAADQANX/AAABAAAAAADXANX/AAABAAAAAADZANX/AAABAAAAAADdANX/AAAAAAAAAADfANX/AAACAAAAAADnANX/AAABAAAAAADoANX/AAACAAAAAACiAJ//AAACAAAAAACcAJ//AAADAAAAAACbAJ//AAAAAAAAAACYAJ//AAADAAAAAACSAJ//AAADAAAAAACJAJ//AAADAAAAAACGAJ//AAABAAAAAACEAJ//AAACAAAAAACAAJ//AAABAAAAAAB/AJ//AAADAAAAAAB9AJ//AAACAAAAAAA=")
|
||||
tile_set = ExtResource("13_lc0ll")
|
||||
|
||||
[node name="ConsoleManagement" type="Node" parent="." node_paths=PackedStringArray("player_health", "skill_unlocker", "skill_manager")]
|
||||
script = ExtResource("12_78lb3")
|
||||
player_health = NodePath("../Brick Player/HealthComponent")
|
||||
skill_unlocker = NodePath("../Brick Player/SkillUnlockerComponent")
|
||||
skill_manager = NodePath("../Brick Player/SkillManager")
|
||||
metadata/_custom_type_script = "uid://8r1y8elyw7kt"
|
||||
|
||||
[node name="Killzone" parent="." instance=ExtResource("13_sw2hn")]
|
||||
position = Vector2(170, 582)
|
||||
|
||||
[node name="ExitLevel" parent="." instance=ExtResource("15_hcsb6")]
|
||||
position = Vector2(987, -776)
|
||||
|
||||
@@ -175,8 +158,8 @@ position = Vector2(792, -784)
|
||||
[node name="Lever" parent="." instance=ExtResource("20_h4uvs")]
|
||||
position = Vector2(-231, -776)
|
||||
|
||||
[connection signal="on_death" from="Brick Player/HealthComponent" to="UI Layer/DeathScreen" method="on_player_death"]
|
||||
[connection signal="on_death" from="Brick Player/HealthComponent" to="UI Layer/GameOverScreen" method="on_player_death"]
|
||||
[connection signal="Death" from="Brick Player/HealthComponent" to="UI Layer/DeathScreen" method="OnPlayerDeath"]
|
||||
[connection signal="Death" from="Brick Player/HealthComponent" to="UI Layer/GameOverScreen" method="OnPlayerDeath"]
|
||||
|
||||
[editable path="Brick Player"]
|
||||
[editable path="UI Layer"]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=33 format=4 uid="uid://h60obxmju6mo"]
|
||||
[gd_scene load_steps=30 format=4 uid="uid://h60obxmju6mo"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dyp4i4ru2j2jh" path="res://objects/fxs/explosion_fx.tscn" id="1_p30ax"]
|
||||
[ext_resource type="PackedScene" uid="uid://dx80ivlvuuew4" path="res://objects/fxs/fire_fx.tscn" id="2_a7yjf"]
|
||||
@@ -16,10 +16,7 @@
|
||||
[ext_resource type="Script" uid="uid://ccfft4b8rwgbo" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="14_k7w2w"]
|
||||
[ext_resource type="PackedScene" uid="uid://d0s2abysa86rq" path="res://objects/entities/child.tscn" id="15_dv6gh"]
|
||||
[ext_resource type="PackedScene" uid="uid://6foggu31cu14" path="res://objects/level/ui_layer.tscn" id="16_nr2eo"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqom4cm7r18db" path="res://objects/entities/killzone.tscn" id="17_3xroh"]
|
||||
[ext_resource type="Resource" uid="uid://b63u5qfp8p7pv" path="res://resources/levels/village/village_3.tres" id="17_a7yjf"]
|
||||
[ext_resource type="PackedScene" uid="uid://b4pdt1gv2ymyi" path="res://objects/tooltip.tscn" id="18_l3a7y"]
|
||||
[ext_resource type="Script" uid="uid://8r1y8elyw7kt" path="res://scripts/console_management.gd" id="19_0pba3"]
|
||||
[ext_resource type="PackedScene" uid="uid://cawlpch2lk3a2" path="res://objects/level/world_environment.tscn" id="20_embdf"]
|
||||
[ext_resource type="PackedScene" uid="uid://cywsu7yrtjdog" path="res://objects/level/global_light.tscn" id="21_fytod"]
|
||||
[ext_resource type="PackedScene" uid="uid://t6h2ra7kjyq" path="res://objects/entities/small_heal_potion.tscn" id="23_m6h4x"]
|
||||
@@ -297,7 +294,7 @@ z_index = 5
|
||||
position = Vector2(903, -118)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="HitParticles" parent="Brick Player" index="27"]
|
||||
[node name="HitParticles" parent="Brick Player" index="26"]
|
||||
process_material = SubResource("ParticleProcessMaterial_lgb3u")
|
||||
|
||||
[node name="Camera2D" parent="." instance=ExtResource("12_qhkyq")]
|
||||
@@ -325,33 +322,18 @@ position = Vector2(880, -578)
|
||||
|
||||
[node name="UI Layer" parent="." instance=ExtResource("16_nr2eo")]
|
||||
|
||||
[node name="HUD" parent="UI Layer" index="0" node_paths=PackedStringArray("player_health")]
|
||||
player_health = NodePath("../../Brick Player/HealthComponent")
|
||||
[node name="HUD" parent="UI Layer" index="0" node_paths=PackedStringArray("Health")]
|
||||
Health = NodePath("../../Brick Player/HealthComponent")
|
||||
|
||||
[node name="DeathScreen" parent="UI Layer" index="1" node_paths=PackedStringArray("nodes_to_disable")]
|
||||
current_level = ExtResource("17_a7yjf")
|
||||
nodes_to_disable = [NodePath("../../Brick Player")]
|
||||
|
||||
[node name="Marketplace" parent="UI Layer" index="3" node_paths=PackedStringArray("skill_unlocker", "components_to_disable")]
|
||||
skill_unlocker = NodePath("../../Brick Player/SkillUnlockerComponent")
|
||||
components_to_disable = [NodePath("../../Brick Player")]
|
||||
|
||||
[node name="Killzone" parent="." instance=ExtResource("17_3xroh")]
|
||||
position = Vector2(2600, 802)
|
||||
[node name="Marketplace" parent="UI Layer" index="3" node_paths=PackedStringArray("SkillUnlockerComponent", "ComponentsToDisable")]
|
||||
SkillUnlockerComponent = NodePath("../../Brick Player/SkillUnlockerComponent")
|
||||
ComponentsToDisable = [NodePath("../../Brick Player")]
|
||||
|
||||
[node name="Tooltip" parent="." instance=ExtResource("18_l3a7y")]
|
||||
position = Vector2(1016, -104)
|
||||
text = "Press 'down' to fall from platform!"
|
||||
|
||||
[node name="Tooltip2" parent="." instance=ExtResource("18_l3a7y")]
|
||||
position = Vector2(1576, -40)
|
||||
text = "Be careful!"
|
||||
|
||||
[node name="ConsoleManagement" type="Node" parent="." node_paths=PackedStringArray("player_health", "skill_unlocker", "skill_manager")]
|
||||
script = ExtResource("19_0pba3")
|
||||
player_health = NodePath("../Brick Player/HealthComponent")
|
||||
skill_unlocker = NodePath("../Brick Player/SkillUnlockerComponent")
|
||||
skill_manager = NodePath("../Brick Player/SkillManager")
|
||||
|
||||
[node name="WorldEnvironment" parent="." instance=ExtResource("20_embdf")]
|
||||
|
||||
@@ -366,9 +348,8 @@ position = Vector2(1244, -41)
|
||||
[node name="SmallHealPotion3" parent="." instance=ExtResource("23_m6h4x")]
|
||||
position = Vector2(1359, -42)
|
||||
|
||||
[connection signal="on_death" from="Brick Player/HealthComponent" to="UI Layer/DeathScreen" method="on_player_death"]
|
||||
[connection signal="on_death" from="Brick Player/HealthComponent" to="UI Layer/GameOverScreen" method="on_player_death"]
|
||||
[connection signal="Death" from="Brick Player/HealthComponent" to="UI Layer/DeathScreen" method="OnPlayerDeath"]
|
||||
[connection signal="Death" from="Brick Player/HealthComponent" to="UI Layer/GameOverScreen" method="OnPlayerDeath"]
|
||||
|
||||
[editable path="Brick Player"]
|
||||
[editable path="UI Layer"]
|
||||
[editable path="Killzone"]
|
||||
|
@@ -1,11 +1,10 @@
|
||||
[gd_scene load_steps=37 format=4 uid="uid://bhad760x3vvco"]
|
||||
[gd_scene load_steps=34 format=4 uid="uid://bhad760x3vvco"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bqi5s710xb1ju" path="res://objects/entities/brick_player.tscn" id="1_k3uyd"]
|
||||
[ext_resource type="PackedScene" uid="uid://bon6raeddf3tu" path="res://objects/entities/chaser.tscn" id="1_xraal"]
|
||||
[ext_resource type="PackedScene" uid="uid://cawlpch2lk3a2" path="res://objects/level/world_environment.tscn" id="2_a7hm7"]
|
||||
[ext_resource type="PackedScene" uid="uid://6foggu31cu14" path="res://objects/level/ui_layer.tscn" id="3_p8wo6"]
|
||||
[ext_resource type="PackedScene" uid="uid://cywsu7yrtjdog" path="res://objects/level/global_light.tscn" id="4_0lkg8"]
|
||||
[ext_resource type="Resource" uid="uid://cxfei28yu3buh" path="res://resources/levels/village/village_4.tres" id="5_iqtv2"]
|
||||
[ext_resource type="PackedScene" uid="uid://cb0mnye1ki5a6" path="res://objects/level/camera_2d.tscn" id="5_yqj3b"]
|
||||
[ext_resource type="Script" uid="uid://d23haq52m7ulv" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="6_i5rlu"]
|
||||
[ext_resource type="PackedScene" uid="uid://bd51frym6mm7v" path="res://objects/entities/lever.tscn" id="7_1bwe8"]
|
||||
@@ -14,8 +13,6 @@
|
||||
[ext_resource type="TileSet" uid="uid://cu2sx7qigrqnv" path="res://resources/tilesets/village/terain.tres" id="9_bjo44"]
|
||||
[ext_resource type="TileSet" uid="uid://bc5a20s6kuy8e" path="res://resources/tilesets/village/entities.tres" id="10_gg8rp"]
|
||||
[ext_resource type="TileSet" uid="uid://bbppo0irxdmqy" path="res://resources/tilesets/village/foreground.tres" id="11_23awj"]
|
||||
[ext_resource type="Script" uid="uid://8r1y8elyw7kt" path="res://scripts/console_management.gd" id="12_4o5b1"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqom4cm7r18db" path="res://objects/entities/killzone.tscn" id="13_1heob"]
|
||||
[ext_resource type="PackedScene" uid="uid://lpovacvt3yyj" path="res://objects/entities/spaceship_enter.tscn" id="14_bajwe"]
|
||||
[ext_resource type="PackedScene" uid="uid://d0s2abysa86rq" path="res://objects/entities/child.tscn" id="15_3iocp"]
|
||||
[ext_resource type="PackedScene" uid="uid://xp4njljog0x2" path="res://objects/entities/flying_enemy.tscn" id="18_162yw"]
|
||||
@@ -115,25 +112,19 @@ texture = SubResource("CanvasTexture_o1yb3")
|
||||
[node name="Chaser" parent="." instance=ExtResource("1_xraal")]
|
||||
position = Vector2(578.405, 15.8615)
|
||||
|
||||
[node name="ChaseLevelComponent" parent="Chaser" index="0" node_paths=PackedStringArray("chase_target", "phantom_camera")]
|
||||
chase_speed = 170.0
|
||||
chase_target = NodePath("../../Chase Target")
|
||||
phantom_camera = NodePath("../../PhantomCamera2D")
|
||||
[node name="ChaseLevelComponent" parent="Chaser" index="0" node_paths=PackedStringArray("ChaseTarget")]
|
||||
ChaseTarget = NodePath("../../Chase Target")
|
||||
|
||||
[node name="WorldEnvironment" parent="." instance=ExtResource("2_a7hm7")]
|
||||
|
||||
[node name="UI Layer" parent="." instance=ExtResource("3_p8wo6")]
|
||||
|
||||
[node name="HUD" parent="UI Layer" index="0" node_paths=PackedStringArray("player_health")]
|
||||
player_health = NodePath("../../Brick Player/HealthComponent")
|
||||
[node name="HUD" parent="UI Layer" index="0" node_paths=PackedStringArray("Health")]
|
||||
Health = NodePath("../../Brick Player/HealthComponent")
|
||||
|
||||
[node name="DeathScreen" parent="UI Layer" index="1" node_paths=PackedStringArray("nodes_to_disable")]
|
||||
current_level = ExtResource("5_iqtv2")
|
||||
nodes_to_disable = [NodePath("../../Brick Player")]
|
||||
|
||||
[node name="Marketplace" parent="UI Layer" index="3" node_paths=PackedStringArray("skill_unlocker", "components_to_disable")]
|
||||
skill_unlocker = NodePath("../../Brick Player/SkillUnlockerComponent")
|
||||
components_to_disable = [NodePath("../../Brick Player")]
|
||||
[node name="Marketplace" parent="UI Layer" index="3" node_paths=PackedStringArray("SkillUnlockerComponent", "ComponentsToDisable")]
|
||||
SkillUnlockerComponent = NodePath("../../Brick Player/SkillUnlockerComponent")
|
||||
ComponentsToDisable = [NodePath("../../Brick Player")]
|
||||
|
||||
[node name="Global Light" parent="." instance=ExtResource("4_0lkg8")]
|
||||
|
||||
@@ -148,7 +139,8 @@ limit_top = -10000000
|
||||
limit_right = 10000000
|
||||
limit_bottom = 10000000
|
||||
|
||||
[node name="PhantomCamera2D" type="Node2D" parent="." node_paths=PackedStringArray("follow_target")]
|
||||
[node name="PhantomCamera" type="Node2D" parent="." node_paths=PackedStringArray("follow_target")]
|
||||
unique_name_in_owner = true
|
||||
top_level = true
|
||||
script = ExtResource("6_i5rlu")
|
||||
follow_mode = 2
|
||||
@@ -174,25 +166,12 @@ tile_set = ExtResource("10_gg8rp")
|
||||
[node name="Foreground layer" type="TileMapLayer" parent="."]
|
||||
tile_set = ExtResource("11_23awj")
|
||||
|
||||
[node name="ConsoleManagement" type="Node" parent="." node_paths=PackedStringArray("player_health", "skill_unlocker", "skill_manager")]
|
||||
script = ExtResource("12_4o5b1")
|
||||
player_health = NodePath("../Brick Player/HealthComponent")
|
||||
skill_unlocker = NodePath("../Brick Player/SkillUnlockerComponent")
|
||||
skill_manager = NodePath("../Brick Player/SkillManager")
|
||||
metadata/_custom_type_script = "uid://8r1y8elyw7kt"
|
||||
|
||||
[node name="Killzone" parent="." instance=ExtResource("13_1heob")]
|
||||
position = Vector2(215, 324)
|
||||
|
||||
[node name="Spaceship Enter" parent="." instance=ExtResource("14_bajwe")]
|
||||
position = Vector2(559, 15)
|
||||
|
||||
[node name="Chase Target" type="Marker2D" parent="."]
|
||||
position = Vector2(7146.51, 21.1388)
|
||||
|
||||
[node name="Brick Player" parent="." instance=ExtResource("1_k3uyd")]
|
||||
|
||||
[node name="HitParticles" parent="Brick Player" index="27"]
|
||||
[node name="HitParticles" parent="Brick Player" index="26"]
|
||||
process_material = SubResource("ParticleProcessMaterial_lgb3u")
|
||||
|
||||
[node name="Enemies" type="Node2D" parent="."]
|
||||
@@ -204,9 +183,6 @@ metadata/_edit_group_ = true
|
||||
[node name="Sprite2D" parent="Enemies/Flying Enemy" index="1"]
|
||||
flip_h = true
|
||||
|
||||
[node name="PeriodicShootingComponent" parent="Enemies/Flying Enemy" index="8"]
|
||||
shoot_direction = Vector2(-1, 0)
|
||||
|
||||
[node name="HitParticles" parent="Enemies/Flying Enemy" index="15"]
|
||||
process_material = SubResource("ParticleProcessMaterial_qxfb0")
|
||||
|
||||
@@ -220,9 +196,6 @@ metadata/_edit_group_ = true
|
||||
[node name="Sprite2D" parent="Enemies/Flying Enemy2" index="1"]
|
||||
flip_h = true
|
||||
|
||||
[node name="PeriodicShootingComponent" parent="Enemies/Flying Enemy2" index="8"]
|
||||
shoot_direction = Vector2(-1, 0)
|
||||
|
||||
[node name="HitParticles" parent="Enemies/Flying Enemy2" index="15"]
|
||||
process_material = SubResource("ParticleProcessMaterial_qxfb0")
|
||||
|
||||
@@ -236,9 +209,6 @@ metadata/_edit_group_ = true
|
||||
[node name="Sprite2D" parent="Enemies/Flying Enemy3" index="1"]
|
||||
flip_h = true
|
||||
|
||||
[node name="PeriodicShootingComponent" parent="Enemies/Flying Enemy3" index="8"]
|
||||
shoot_direction = Vector2(-1, 0)
|
||||
|
||||
[node name="HitParticles" parent="Enemies/Flying Enemy3" index="15"]
|
||||
process_material = SubResource("ParticleProcessMaterial_qxfb0")
|
||||
|
||||
@@ -252,9 +222,6 @@ metadata/_edit_group_ = true
|
||||
[node name="Sprite2D" parent="Enemies/Flying Enemy4" index="1"]
|
||||
flip_h = true
|
||||
|
||||
[node name="PeriodicShootingComponent" parent="Enemies/Flying Enemy4" index="8"]
|
||||
shoot_direction = Vector2(-1, 0)
|
||||
|
||||
[node name="HitParticles" parent="Enemies/Flying Enemy4" index="15"]
|
||||
process_material = SubResource("ParticleProcessMaterial_qxfb0")
|
||||
|
||||
@@ -281,38 +248,38 @@ metadata/_edit_group_ = true
|
||||
[node name="Sprite2D" parent="Enemies mid section path/PathFollow2D/Flying Enemy" index="1"]
|
||||
flip_h = true
|
||||
|
||||
[node name="PeriodicShootingComponent" parent="Enemies mid section path/PathFollow2D/Flying Enemy" index="8"]
|
||||
shoot_direction = Vector2(-1, 0)
|
||||
|
||||
[node name="HitParticles" parent="Enemies mid section path/PathFollow2D/Flying Enemy" index="15"]
|
||||
process_material = SubResource("ParticleProcessMaterial_qxfb0")
|
||||
|
||||
[node name="laser spawn point left" parent="Enemies mid section path/PathFollow2D/Flying Enemy" index="19"]
|
||||
position = Vector2(-12, -2)
|
||||
|
||||
[node name="Spaceship Enter" parent="." instance=ExtResource("14_bajwe")]
|
||||
position = Vector2(559, 15)
|
||||
|
||||
[node name="Spaceship exit" parent="." instance=ExtResource("21_e6jir")]
|
||||
position = Vector2(7148, 22)
|
||||
|
||||
[node name="CollisionShape2D" parent="Spaceship exit" index="0"]
|
||||
position = Vector2(16.5, -10)
|
||||
|
||||
[connection signal="spaceship_entered" from="Spaceship Enter/SpaceshipEnterComponent" to="Chaser/ChaseLevelComponent" method="on_ship_entered"]
|
||||
[connection signal="spaceship_entered" from="Spaceship Enter/SpaceshipEnterComponent" to="Brick Player" method="on_spaceship_entered"]
|
||||
[connection signal="spaceship_entered" from="Spaceship Enter/SpaceshipEnterComponent" to="Brick Player/Movements/PlatformMovement" method="on_ship_entered"]
|
||||
[connection signal="spaceship_entered" from="Spaceship Enter/SpaceshipEnterComponent" to="Brick Player/ShipShooter" method="on_ship_entered"]
|
||||
[connection signal="on_death" from="Brick Player/HealthComponent" to="UI Layer/DeathScreen" method="on_player_death"]
|
||||
[connection signal="on_death" from="Brick Player/HealthComponent" to="UI Layer/GameOverScreen" method="on_player_death"]
|
||||
[connection signal="spaceship_exited" from="Spaceship exit" to="Chaser/ChaseLevelComponent" method="on_ship_exited"]
|
||||
[connection signal="spaceship_exited" from="Spaceship exit" to="Brick Player" method="on_spaceship_exited"]
|
||||
[connection signal="spaceship_exited" from="Spaceship exit" to="Brick Player/ShipShooter" method="on_ship_exited"]
|
||||
[connection signal="Death" from="Brick Player/HealthComponent" to="UI Layer/DeathScreen" method="OnPlayerDeath"]
|
||||
[connection signal="Death" from="Brick Player/HealthComponent" to="UI Layer/GameOverScreen" method="OnPlayerDeath"]
|
||||
[connection signal="SpaceshipEntered" from="Spaceship Enter" to="Chaser/ChaseLevelComponent" method="OnShipEntered"]
|
||||
[connection signal="SpaceshipEntered" from="Spaceship Enter" to="Brick Player" method="OnSpaceshipEntered"]
|
||||
[connection signal="SpaceshipEntered" from="Spaceship Enter" to="Brick Player/Movements/PlatformMovement" method="OnShipEntered"]
|
||||
[connection signal="SpaceshipEntered" from="Spaceship Enter" to="Brick Player/ShipShooter" method="OnShipEntered"]
|
||||
[connection signal="SpaceshipExit" from="Spaceship exit" to="Chaser/ChaseLevelComponent" method="OnShipExited"]
|
||||
[connection signal="SpaceshipExit" from="Spaceship exit" to="Brick Player" method="OnSpaceshipExited"]
|
||||
[connection signal="SpaceshipExit" from="Spaceship exit" to="Brick Player/ShipShooter" method="OnShipExited"]
|
||||
|
||||
[editable path="Chaser"]
|
||||
[editable path="UI Layer"]
|
||||
[editable path="Spaceship Enter"]
|
||||
[editable path="Brick Player"]
|
||||
[editable path="Enemies/Flying Enemy"]
|
||||
[editable path="Enemies/Flying Enemy2"]
|
||||
[editable path="Enemies/Flying Enemy3"]
|
||||
[editable path="Enemies/Flying Enemy4"]
|
||||
[editable path="Enemies mid section path/PathFollow2D/Flying Enemy"]
|
||||
[editable path="Spaceship Enter"]
|
||||
[editable path="Spaceship exit"]
|
||||
|
@@ -8,14 +8,16 @@
|
||||
|
||||
[node name="Main menu" type="CanvasLayer"]
|
||||
|
||||
[node name="MainMenu" parent="." node_paths=PackedStringArray("settings_control", "credits_control") instance=ExtResource("1_ekxnf")]
|
||||
settings_control = NodePath("../Settings menu")
|
||||
credits_control = NodePath("../Credits")
|
||||
[node name="MainMenu" parent="." node_paths=PackedStringArray("SettingsControl", "CreditsControl") instance=ExtResource("1_ekxnf")]
|
||||
SettingsControl = NodePath("../Settings menu")
|
||||
CreditsControl = NodePath("../Credits")
|
||||
|
||||
[node name="Settings menu" parent="." node_paths=PackedStringArray("input_settings", "audio_settings") instance=ExtResource("2_bqqt6")]
|
||||
[node name="Settings menu" parent="." node_paths=PackedStringArray("InputSettingsControl", "AudioSettingsControl", "DisplaySettingsControl", "GameplaySettingsControl") instance=ExtResource("2_bqqt6")]
|
||||
visible = false
|
||||
input_settings = NodePath("../Input Settings")
|
||||
audio_settings = NodePath("../Audio settings")
|
||||
InputSettingsControl = NodePath("../Input Settings")
|
||||
AudioSettingsControl = NodePath("../Audio settings")
|
||||
DisplaySettingsControl = NodePath("../Display Settings")
|
||||
GameplaySettingsControl = NodePath("../Gameplay Settings")
|
||||
|
||||
[node name="Credits" parent="." instance=ExtResource("3_bqqt6")]
|
||||
visible = false
|
||||
@@ -25,3 +27,15 @@ visible = false
|
||||
|
||||
[node name="Input Settings" parent="." instance=ExtResource("5_rtw2f")]
|
||||
visible = false
|
||||
|
||||
[node name="Gameplay Settings" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="Display Settings" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
Reference in New Issue
Block a user