|
@@ -1,10 +1,11 @@
|
|
-[gd_scene load_steps=7 format=2]
|
|
|
|
|
|
+[gd_scene load_steps=8 format=2]
|
|
|
|
|
|
[ext_resource path="res://component/entity/brick/color_brik.png" type="Texture" id=1]
|
|
[ext_resource path="res://component/entity/brick/color_brik.png" type="Texture" id=1]
|
|
[ext_resource path="res://component/entity/brick/Brick.gd" type="Script" id=2]
|
|
[ext_resource path="res://component/entity/brick/Brick.gd" type="Script" id=2]
|
|
[ext_resource path="res://component/entity/brick/BrickMainColor.gd" type="Script" id=3]
|
|
[ext_resource path="res://component/entity/brick/BrickMainColor.gd" type="Script" id=3]
|
|
[ext_resource path="res://component/entity/brick/BrickLifeDisplay.gd" type="Script" id=4]
|
|
[ext_resource path="res://component/entity/brick/BrickLifeDisplay.gd" type="Script" id=4]
|
|
[ext_resource path="res://component/entity/brick/common_brick.png" type="Texture" id=5]
|
|
[ext_resource path="res://component/entity/brick/common_brick.png" type="Texture" id=5]
|
|
|
|
+[ext_resource path="res://effect/particle/impact/Impact.tscn" type="PackedScene" id=6]
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 20, 10 )
|
|
extents = Vector2( 20, 10 )
|
|
@@ -25,11 +26,14 @@ script = ExtResource( 3 )
|
|
texture = ExtResource( 1 )
|
|
texture = ExtResource( 1 )
|
|
centered = false
|
|
centered = false
|
|
|
|
|
|
|
|
+[node name="ImpactSplash" parent="MainColor" instance=ExtResource( 6 )]
|
|
|
|
+
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 20, 10 )
|
|
position = Vector2( 20, 10 )
|
|
shape = SubResource( 1 )
|
|
shape = SubResource( 1 )
|
|
|
|
|
|
[node name="LifeDisplay" type="Node2D" parent="."]
|
|
[node name="LifeDisplay" type="Node2D" parent="."]
|
|
script = ExtResource( 4 )
|
|
script = ExtResource( 4 )
|
|
-[connection signal="life_changed" from="." to="MainColor" method="_on_Brick_life_changed"]
|
|
|
|
|
|
+[connection signal="impact" from="." to="MainColor/ImpactSplash" method="splash_at"]
|
|
[connection signal="life_changed" from="." to="LifeDisplay" 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"]
|