Update scene resources and improve health management logic
This commit is contained in:
49
objects/forest_parallax_background.tscn
Normal file
49
objects/forest_parallax_background.tscn
Normal file
@@ -0,0 +1,49 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://blpk55m4e7y3a"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://055an6f4wluo" path="res://sprites/backgrounds/forest/PS_Forest_01.png" id="1_vpdhu"]
|
||||
[ext_resource type="Texture2D" uid="uid://dk8846ai1ht6i" path="res://sprites/backgrounds/forest/PS_Forest_02.png" id="2_11jh3"]
|
||||
[ext_resource type="Texture2D" uid="uid://bl3iv071i34ge" path="res://sprites/backgrounds/forest/PS_Forest_03.png" id="3_j8xur"]
|
||||
[ext_resource type="Texture2D" uid="uid://bcrqiyfk6fpgq" path="res://sprites/backgrounds/forest/PS_Forest_04.png" id="4_qdo8p"]
|
||||
|
||||
[node name="ParallaxBackground" type="ParallaxBackground"]
|
||||
|
||||
[node name="Sky" type="ParallaxLayer" parent="."]
|
||||
motion_scale = Vector2(0, 0)
|
||||
motion_mirroring = Vector2(480, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Sky"]
|
||||
texture_repeat = 2
|
||||
scale = Vector2(1.5, 1.013)
|
||||
texture = ExtResource("1_vpdhu")
|
||||
centered = false
|
||||
|
||||
[node name="Clouds" type="ParallaxLayer" parent="."]
|
||||
motion_scale = Vector2(0.1, 0.1)
|
||||
motion_mirroring = Vector2(480, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Clouds"]
|
||||
texture_repeat = 2
|
||||
scale = Vector2(1.5, 1.5)
|
||||
texture = ExtResource("2_11jh3")
|
||||
centered = false
|
||||
|
||||
[node name="Hills" type="ParallaxLayer" parent="."]
|
||||
motion_scale = Vector2(0.2, 0.2)
|
||||
motion_mirroring = Vector2(480, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Hills"]
|
||||
texture_repeat = 2
|
||||
scale = Vector2(1.5, 1.5)
|
||||
texture = ExtResource("3_j8xur")
|
||||
centered = false
|
||||
|
||||
[node name="Ground" type="ParallaxLayer" parent="."]
|
||||
motion_scale = Vector2(0.4, 0.4)
|
||||
motion_offset = Vector2(0.1, 0)
|
||||
motion_mirroring = Vector2(480, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Ground"]
|
||||
texture_repeat = 2
|
||||
scale = Vector2(1.5, 1.5)
|
||||
texture = ExtResource("4_qdo8p")
|
||||
centered = false
|
@@ -1,8 +1,9 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cb0mnye1ki5a6"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cb0mnye1ki5a6"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cie33tct7ehf0" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="1_5abjq"]
|
||||
[ext_resource type="PackedScene" uid="uid://dtjrpkhssq32a" path="res://objects/bg.tscn" id="2_nd58g"]
|
||||
[ext_resource type="PackedScene" uid="uid://bva54p1fxomu2" path="res://objects/parallax_background.tscn" id="3_cdmor"]
|
||||
[ext_resource type="PackedScene" uid="uid://bva54p1fxomu2" path="res://objects/village_parallax_background.tscn" id="3_cdmor"]
|
||||
[ext_resource type="PackedScene" uid="uid://blpk55m4e7y3a" path="res://objects/forest_parallax_background.tscn" id="4_nd58g"]
|
||||
|
||||
[node name="Camera2D" type="Camera2D"]
|
||||
limit_left = 320
|
||||
@@ -22,4 +23,7 @@ z_index = -3
|
||||
scale = Vector2(1.5, 1.5)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ParallaxBackground" parent="." instance=ExtResource("3_cdmor")]
|
||||
[node name="VillageParallaxBackground" parent="." instance=ExtResource("3_cdmor")]
|
||||
|
||||
[node name="ParallaxBackground" parent="." instance=ExtResource("4_nd58g")]
|
||||
visible = false
|
||||
|
@@ -48,14 +48,17 @@ theme_override_constants/margin_bottom = 8
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
alignment = 1
|
||||
|
||||
[node name="Health Label" type="Label" parent="PanelContainer/MarginContainer/HBoxContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
text = "HEALTH_LABEL"
|
||||
label_settings = ExtResource("1_4dsh5")
|
||||
uppercase = true
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="PanelContainer/MarginContainer/HBoxContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
@@ -68,12 +71,16 @@ show_percentage = false
|
||||
|
||||
[node name="Lives" type="Label" parent="PanelContainer/MarginContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "LIVES_LABEL"
|
||||
label_settings = ExtResource("1_4dsh5")
|
||||
horizontal_alignment = 1
|
||||
uppercase = true
|
||||
|
||||
[node name="Coins label" type="Label" parent="PanelContainer/MarginContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "COINS_LABEL"
|
||||
label_settings = ExtResource("1_4dsh5")
|
||||
horizontal_alignment = 1
|
||||
uppercase = true
|
||||
|
@@ -1,9 +1,9 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bva54p1fxomu2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d2f4ooucvrjcc" path="res://sprites/backgrounds/plains/1.png" id="1_rfutu"]
|
||||
[ext_resource type="Texture2D" uid="uid://cdgk3fi8owc6o" path="res://sprites/backgrounds/plains/2.png" id="2_uysv2"]
|
||||
[ext_resource type="Texture2D" uid="uid://p0bt2k2lihlx" path="res://sprites/backgrounds/plains/3.png" id="3_l6n33"]
|
||||
[ext_resource type="Texture2D" uid="uid://bcahm7wqdbn6n" path="res://sprites/backgrounds/plains/4.png" id="4_jkhju"]
|
||||
[ext_resource type="Texture2D" uid="uid://d2f4ooucvrjcc" path="res://sprites/backgrounds/plains/1.png" id="1_kdcp8"]
|
||||
[ext_resource type="Texture2D" uid="uid://cdgk3fi8owc6o" path="res://sprites/backgrounds/plains/2.png" id="2_ev808"]
|
||||
[ext_resource type="Texture2D" uid="uid://p0bt2k2lihlx" path="res://sprites/backgrounds/plains/3.png" id="3_sfana"]
|
||||
[ext_resource type="Texture2D" uid="uid://bcahm7wqdbn6n" path="res://sprites/backgrounds/plains/4.png" id="4_8eim1"]
|
||||
|
||||
[node name="ParallaxBackground" type="ParallaxBackground"]
|
||||
|
||||
@@ -12,7 +12,7 @@ motion_scale = Vector2(0, 0)
|
||||
motion_mirroring = Vector2(480, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Sky"]
|
||||
texture = ExtResource("1_rfutu")
|
||||
texture = ExtResource("1_kdcp8")
|
||||
centered = false
|
||||
|
||||
[node name="Clouds" type="ParallaxLayer" parent="."]
|
||||
@@ -20,7 +20,7 @@ motion_scale = Vector2(0.1, 0.1)
|
||||
motion_mirroring = Vector2(480, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Clouds"]
|
||||
texture = ExtResource("2_uysv2")
|
||||
texture = ExtResource("2_ev808")
|
||||
centered = false
|
||||
|
||||
[node name="Hills" type="ParallaxLayer" parent="."]
|
||||
@@ -28,7 +28,7 @@ motion_scale = Vector2(0.2, 0.2)
|
||||
motion_mirroring = Vector2(480, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Hills"]
|
||||
texture = ExtResource("3_l6n33")
|
||||
texture = ExtResource("3_sfana")
|
||||
centered = false
|
||||
|
||||
[node name="Ground" type="ParallaxLayer" parent="."]
|
||||
@@ -37,5 +37,5 @@ motion_mirroring = Vector2(480, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Ground"]
|
||||
scale = Vector2(1, 1.14074)
|
||||
texture = ExtResource("4_jkhju")
|
||||
texture = ExtResource("4_8eim1")
|
||||
centered = false
|
Reference in New Issue
Block a user