|
@@ -8,7 +8,7 @@
|
|
|
[ext_resource path="res://effect/particle/impact/Impact.tscn" type="PackedScene" id=6]
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
|
-extents = Vector2( 20, 10 )
|
|
|
+extents = Vector2( 21, 11 )
|
|
|
|
|
|
[node name="Brick" type="StaticBody2D"]
|
|
|
collision_layer = 4
|
|
@@ -27,7 +27,6 @@ texture = ExtResource( 1 )
|
|
|
centered = false
|
|
|
|
|
|
[node name="ImpactSplash" parent="MainColor" instance=ExtResource( 6 )]
|
|
|
-emitting = false
|
|
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
|
|
position = Vector2( 20, 10 )
|
|
@@ -36,5 +35,5 @@ shape = SubResource( 1 )
|
|
|
[node name="LifeDisplay" type="Node2D" parent="."]
|
|
|
script = ExtResource( 4 )
|
|
|
[connection signal="impact" from="." to="MainColor/ImpactSplash" method="splash_at"]
|
|
|
-[connection signal="life_changed" from="." to="MainColor" method="_on_Brick_life_changed"]
|
|
|
[connection signal="life_changed" from="." to="LifeDisplay" method="_on_Brick_life_changed"]
|
|
|
+[connection signal="life_changed" from="." to="MainColor" method="_on_Brick_life_changed"]
|