Update collectable resources and improve FloatingTextManager integration

This commit is contained in:
2026-02-02 12:45:48 +01:00
parent 2bf903728b
commit 3616f4ba79
21 changed files with 538 additions and 145 deletions

View File

@@ -3,6 +3,7 @@
[ext_resource type="PackedScene" uid="uid://bqi5s710xb1ju" path="res://objects/entities/brick_player.tscn" id="1_37wjj"]
[ext_resource type="PackedScene" uid="uid://cawlpch2lk3a2" path="res://objects/level/world_environment.tscn" id="2_edawf"]
[ext_resource type="PackedScene" uid="uid://6foggu31cu14" path="res://objects/level/ui_layer.tscn" id="3_4xc2i"]
[ext_resource type="Script" uid="uid://c2h0pqhxiqswe" path="res://scripts/Resources/LevelResource.cs" id="3_ph1yb"]
[ext_resource type="PackedScene" uid="uid://cywsu7yrtjdog" path="res://objects/level/global_light.tscn" id="4_quuvq"]
[ext_resource type="PackedScene" uid="uid://cb0mnye1ki5a6" path="res://objects/level/camera_2d.tscn" id="5_xakqe"]
[ext_resource type="Script" uid="uid://d23haq52m7ulv" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="6_8kvwk"]
@@ -16,6 +17,12 @@
[ext_resource type="PackedScene" uid="uid://b4pdt1gv2ymyi" path="res://objects/tooltip.tscn" id="14_tiikr"]
[ext_resource type="PackedScene" uid="uid://12jnkdygpxwc" path="res://objects/entities/exit_level.tscn" id="15_x1nqv"]
[sub_resource type="Resource" id="Resource_asu0i"]
script = ExtResource("3_ph1yb")
LevelName = "Tutorial 1"
ScenePath = "res://scenes/level_tutorial_1.tscn"
metadata/_custom_type_script = "uid://c2h0pqhxiqswe"
[sub_resource type="Resource" id="Resource_0nwt7"]
script = ExtResource("7_3r0gs")
duration = 0.25
@@ -34,7 +41,7 @@ point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_7b7mt"]
curve = SubResource("Curve_82d6e")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_c4p0h"]
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_8xasx"]
resource_local_to_scene = true
lifetime_randomness = 1.0
particle_flag_disable_z = true
@@ -60,6 +67,9 @@ color_ramp = SubResource("GradientTexture1D_f1fvy")
[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"]
CurrentLevel = SubResource("Resource_asu0i")
[node name="Marketplace" parent="UI Layer" index="3" node_paths=PackedStringArray("SkillUnlockerComponent", "ComponentsToDisable")]
SkillUnlockerComponent = NodePath("../../Brick Player/SkillUnlockerComponent")
ComponentsToDisable = [NodePath("../../Brick Player")]
@@ -138,7 +148,7 @@ RequirementAmount = 0
position = Vector2(-93, 13)
[node name="HitParticles" parent="Brick Player" index="23"]
process_material = SubResource("ParticleProcessMaterial_c4p0h")
process_material = SubResource("ParticleProcessMaterial_8xasx")
[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"]

View File

@@ -33,7 +33,7 @@ point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_7b7mt"]
curve = SubResource("Curve_82d6e")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_1jcnd"]
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_84xgs"]
resource_local_to_scene = true
lifetime_randomness = 1.0
particle_flag_disable_z = true
@@ -50,7 +50,7 @@ scale_curve = SubResource("CurveTexture_7b7mt")
color = Color(0.764706, 0.443137, 0, 1)
color_ramp = SubResource("GradientTexture1D_f1fvy")
[sub_resource type="Resource" id="Resource_8o7w0"]
[sub_resource type="Resource" id="Resource_1jcnd"]
resource_local_to_scene = true
script = ExtResource("4_84xgs")
LevelName = "LEVEL_1_NAME"
@@ -68,7 +68,7 @@ transition = 3
z_index = 10
[node name="HitParticles" parent="Brick Player" index="23"]
process_material = SubResource("ParticleProcessMaterial_1jcnd")
process_material = SubResource("ParticleProcessMaterial_84xgs")
[node name="WorldEnvironment" parent="." unique_id=1232714328 instance=ExtResource("2_1vw1j")]
@@ -78,7 +78,7 @@ process_material = SubResource("ParticleProcessMaterial_1jcnd")
Health = NodePath("../../Brick Player/HealthComponent")
[node name="DeathScreen" parent="UI Layer" index="1" node_paths=PackedStringArray("NodesToDisable")]
CurrentLevel = SubResource("Resource_8o7w0")
CurrentLevel = SubResource("Resource_1jcnd")
NodesToDisable = [NodePath("../../Brick Player")]
[node name="Marketplace" parent="UI Layer" index="3" node_paths=PackedStringArray("SkillUnlockerComponent", "ComponentsToDisable")]
@@ -154,6 +154,11 @@ position = Vector2(1485, 25)
position = Vector2(712, -343)
Text = "LEVEL_1_TOOLTIP_1"
[node name="Tooltip4" parent="." unique_id=2082155588 instance=ExtResource("18_4bhfj")]
position = Vector2(59, 24)
Text = "LEVEL_1_TOOLTIP_4"
metadata/_edit_group_ = true
[node name="Tooltip2" parent="." unique_id=1863913906 instance=ExtResource("18_4bhfj")]
position = Vector2(552, 25)
Text = "LEVEL_1_TOOLTIP_2"

File diff suppressed because one or more lines are too long

123
scenes/level_village_6.tscn Normal file

File diff suppressed because one or more lines are too long