|
@@ -1,17 +1,17 @@
|
|
|
-[gd_scene load_steps=19 format=2]
|
|
|
-
|
|
|
-[ext_resource path="res://image/launcher.png" type="Texture" id=1]
|
|
|
-[ext_resource path="res://image/brik.png" type="Texture" id=2]
|
|
|
-[ext_resource path="res://scripts/Catcher.gd" type="Script" id=3]
|
|
|
-[ext_resource path="res://scripts/Launcher.gd" type="Script" id=4]
|
|
|
-[ext_resource path="res://image/visor.png" type="Texture" id=5]
|
|
|
-[ext_resource path="res://scripts/Grid.gd" type="Script" id=6]
|
|
|
-[ext_resource path="res://scripts/UI.gd" type="Script" id=7]
|
|
|
-[ext_resource path="res://scripts/BallCounterLabel.gd" type="Script" id=8]
|
|
|
-[ext_resource path="res://scripts/ScoreCounterLabel.gd" type="Script" id=9]
|
|
|
-[ext_resource path="res://scripts/LifeContainer.gd" type="Script" id=10]
|
|
|
-[ext_resource path="res://scripts/DeadLine.gd" type="Script" id=11]
|
|
|
-[ext_resource path="res://scripts/TargetLine.gd" type="Script" id=12]
|
|
|
+[gd_scene load_steps=17 format=2]
|
|
|
+
|
|
|
+[ext_resource path="res://component/ui/BallCounterLabel.gd" type="Script" id=1]
|
|
|
+[ext_resource path="res://component/entity/launcher/TargetLine.gd" type="Script" id=2]
|
|
|
+[ext_resource path="res://component/entity/catcher/Catcher.gd" type="Script" id=3]
|
|
|
+[ext_resource path="res://component/ui/LifeContainer.gd" type="Script" id=4]
|
|
|
+[ext_resource path="res://component/ui/UI.gd" type="Script" id=5]
|
|
|
+[ext_resource path="res://component/ui/ScoreCounterLabel.gd" type="Script" id=6]
|
|
|
+[ext_resource path="res://component/entity/death/DeadLine.gd" type="Script" id=7]
|
|
|
+[ext_resource path="res://component/entity/launcher/Launcher.gd" type="Script" id=8]
|
|
|
+[ext_resource path="res://component/entity/brick/brick_tileset.tres" type="TileSet" id=9]
|
|
|
+[ext_resource path="res://component/entity/launcher/visor.png" type="Texture" id=10]
|
|
|
+[ext_resource path="res://component/entity/launcher/launcher.png" type="Texture" id=11]
|
|
|
+[ext_resource path="res://component/entity/brick/Grid.gd" type="Script" id=12]
|
|
|
|
|
|
[sub_resource type="PhysicsMaterial" id=1]
|
|
|
friction = 0.0
|
|
@@ -26,27 +26,6 @@ extents = Vector2( 300, 50 )
|
|
|
[sub_resource type="RectangleShape2D" id=4]
|
|
|
extents = Vector2( 200, 50 )
|
|
|
|
|
|
-[sub_resource type="RectangleShape2D" id=5]
|
|
|
-extents = Vector2( 20.5, 10.5 )
|
|
|
-
|
|
|
-[sub_resource type="TileSet" id=6]
|
|
|
-0/name = "brik.png 0"
|
|
|
-0/texture = ExtResource( 2 )
|
|
|
-0/tex_offset = Vector2( 0, 0 )
|
|
|
-0/modulate = Color( 1, 1, 1, 1 )
|
|
|
-0/region = Rect2( 0, 0, 40, 20 )
|
|
|
-0/tile_mode = 0
|
|
|
-0/occluder_offset = Vector2( 0, 0 )
|
|
|
-0/navigation_offset = Vector2( 0, 0 )
|
|
|
-0/shapes = [ {
|
|
|
-"autotile_coord": Vector2( 0, 0 ),
|
|
|
-"one_way": false,
|
|
|
-"one_way_margin": 1.0,
|
|
|
-"shape": SubResource( 5 ),
|
|
|
-"shape_transform": Transform2D( 1, 0, 0, 1, 20, 10 )
|
|
|
-} ]
|
|
|
-0/z_index = 0
|
|
|
-
|
|
|
[node name="Root" type="Node"]
|
|
|
|
|
|
[node name="Background" type="Panel" parent="."]
|
|
@@ -82,23 +61,23 @@ script = ExtResource( 3 )
|
|
|
shape = SubResource( 4 )
|
|
|
|
|
|
[node name="Launcher" type="Node2D" parent="."]
|
|
|
-script = ExtResource( 4 )
|
|
|
+script = ExtResource( 8 )
|
|
|
visor_ratio = 1.6
|
|
|
|
|
|
[node name="Grid" type="TileMap" parent="Launcher" groups=[
|
|
|
"grid",
|
|
|
]]
|
|
|
mode = 2
|
|
|
-tile_set = SubResource( 6 )
|
|
|
+tile_set = ExtResource( 9 )
|
|
|
cell_size = Vector2( 40, 20 )
|
|
|
cell_custom_transform = Transform2D( 40, 0, 0, 20, 0, 0 )
|
|
|
collision_layer = 4
|
|
|
collision_mask = 8
|
|
|
format = 1
|
|
|
-script = ExtResource( 6 )
|
|
|
+script = ExtResource( 12 )
|
|
|
|
|
|
[node name="LifeContainer" type="Node2D" parent="Launcher/Grid"]
|
|
|
-script = ExtResource( 10 )
|
|
|
+script = ExtResource( 4 )
|
|
|
|
|
|
[node name="MoveDown" type="Tween" parent="Launcher/Grid"]
|
|
|
__meta__ = {
|
|
@@ -108,14 +87,14 @@ __meta__ = {
|
|
|
[node name="TargetLine" type="RayCast2D" parent="Launcher"]
|
|
|
position = Vector2( 200, 400 )
|
|
|
collision_mask = 6
|
|
|
-script = ExtResource( 12 )
|
|
|
+script = ExtResource( 2 )
|
|
|
|
|
|
[node name="TargetVisor" type="Sprite" parent="Launcher/TargetLine"]
|
|
|
-texture = ExtResource( 5 )
|
|
|
+texture = ExtResource( 10 )
|
|
|
|
|
|
[node name="Source" type="Sprite" parent="Launcher"]
|
|
|
position = Vector2( 200, 400 )
|
|
|
-texture = ExtResource( 1 )
|
|
|
+texture = ExtResource( 11 )
|
|
|
|
|
|
[node name="ShootDelay" type="Timer" parent="Launcher"]
|
|
|
wait_time = 0.1
|
|
@@ -125,12 +104,12 @@ one_shot = true
|
|
|
position = Vector2( 380, 390 )
|
|
|
cast_to = Vector2( -360, 0 )
|
|
|
collision_mask = 4
|
|
|
-script = ExtResource( 11 )
|
|
|
+script = ExtResource( 7 )
|
|
|
|
|
|
[node name="UI" type="Control" parent="."]
|
|
|
margin_right = 40.0
|
|
|
margin_bottom = 40.0
|
|
|
-script = ExtResource( 7 )
|
|
|
+script = ExtResource( 5 )
|
|
|
__meta__ = {
|
|
|
"_edit_use_anchors_": false
|
|
|
}
|
|
@@ -198,7 +177,7 @@ margin_bottom = 30.0
|
|
|
text = "0"
|
|
|
align = 1
|
|
|
valign = 1
|
|
|
-script = ExtResource( 8 )
|
|
|
+script = ExtResource( 1 )
|
|
|
__meta__ = {
|
|
|
"_edit_use_anchors_": false
|
|
|
}
|
|
@@ -229,7 +208,7 @@ margin_bottom = 30.0
|
|
|
text = "0"
|
|
|
align = 1
|
|
|
valign = 1
|
|
|
-script = ExtResource( 9 )
|
|
|
+script = ExtResource( 6 )
|
|
|
__meta__ = {
|
|
|
"_edit_use_anchors_": false
|
|
|
}
|
|
@@ -240,8 +219,8 @@ __meta__ = {
|
|
|
[connection signal="get_firing" from="Launcher" to="UI" method="_on_Launcher_get_firing"]
|
|
|
[connection signal="is_full" from="Launcher" to="Launcher/Grid" method="_on_Launcher_is_full"]
|
|
|
[connection signal="move_visor" from="Launcher" to="Launcher/TargetLine" method="_on_Launcher_move_visor"]
|
|
|
-[connection signal="has_moved" from="Launcher/Grid" to="Launcher" method="_on_Grid_has_moved"]
|
|
|
[connection signal="has_moved" from="Launcher/Grid" to="Launcher/DeadLine" method="_on_Grid_has_moved"]
|
|
|
+[connection signal="has_moved" from="Launcher/Grid" to="Launcher" method="_on_Grid_has_moved"]
|
|
|
[connection signal="kace_broken" from="Launcher/Grid" to="Launcher" method="_on_Grid_kace_broken"]
|
|
|
[connection signal="kace_damaged" from="Launcher/Grid" to="UI/ScorePanel/ScoreCounterLabel" method="_on_Grid_kace_damaged"]
|
|
|
[connection signal="tween_all_completed" from="Launcher/Grid/MoveDown" to="Launcher/Grid" method="_on_MoveDown_tween_all_completed"]
|