Add PhantomCamera components and UI elements for improved scene management; refactor existing components for better integration
This commit is contained in:
@@ -82,7 +82,8 @@ collision_layer = 4
|
||||
collision_mask = 43
|
||||
script = ExtResource("1_yysbb")
|
||||
MovementTypes = Dictionary[String, NodePath]({
|
||||
"platform": NodePath("Movements/PlatformMovement")
|
||||
"platform": NodePath("Movements/PlatformMovement"),
|
||||
"ship": NodePath("Movements/ShipMovement")
|
||||
})
|
||||
ShipSprite = NodePath("Graphics/Ship")
|
||||
|
||||
@@ -271,6 +272,7 @@ ScreenNotifier = NodePath("../VisibleOnScreenNotifier2D")
|
||||
HealthComponent = NodePath("../HealthComponent")
|
||||
|
||||
[node name="ProgressiveDamageComponent" type="Node" parent="." node_paths=PackedStringArray("HealthComponent", "Sprite", "PlatformMovement")]
|
||||
process_mode = 4
|
||||
script = ExtResource("38_dhjci")
|
||||
HealthComponent = NodePath("../HealthComponent")
|
||||
Sprite = NodePath("../Graphics/Root/Base")
|
||||
|
@@ -22,13 +22,14 @@ Area = NodePath("..")
|
||||
metadata/_custom_type_script = "uid://dkmxhjtmu5xlb"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(8, -0.5)
|
||||
shape = SubResource("RectangleShape2D_n4uav")
|
||||
|
||||
[node name="Line2D" type="Line2D" parent="."]
|
||||
points = PackedVector2Array(0, 0, 16, 0)
|
||||
width = 2.0
|
||||
default_color = Color(0, 94.012, 1, 1)
|
||||
default_color = Color(0, 90, 0, 1)
|
||||
|
||||
[node name="BulletComponent" type="Node" parent="." node_paths=PackedStringArray("Area")]
|
||||
script = ExtResource("2_2bmqm")
|
||||
|
@@ -9,13 +9,10 @@ radius = 16.1245
|
||||
[node name="Spaceship Enter" type="Area2D"]
|
||||
collision_layer = 0
|
||||
collision_mask = 4
|
||||
script = ExtResource("2_wanmd")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_r82pf")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_wanmd")
|
||||
|
||||
[node name="SpaceshipEnterComponent" type="Node" parent="." node_paths=PackedStringArray("Area")]
|
||||
script = ExtResource("2_wanmd")
|
||||
Area = NodePath("..")
|
||||
|
@@ -70,7 +70,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_6imqp")
|
||||
follow_mode = 2
|
||||
|
Reference in New Issue
Block a user