|
@@ -1,8 +1,9 @@
|
|
|
-[gd_scene load_steps=10 format=2]
|
|
|
+[gd_scene load_steps=11 format=2]
|
|
|
|
|
|
[ext_resource path="res://scenes/Ball.tscn" type="PackedScene" 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]
|
|
|
|
|
|
[sub_resource type="PhysicsMaterial" id=5]
|
|
|
friction = 0.0
|
|
@@ -81,4 +82,11 @@ script = ExtResource( 3 )
|
|
|
|
|
|
[node name="Area" type="CollisionShape2D" parent="Catcher"]
|
|
|
shape = SubResource( 8 )
|
|
|
+
|
|
|
+[node name="Launcher" type="Node2D" parent="."]
|
|
|
+position = Vector2( 200, 400 )
|
|
|
+script = ExtResource( 4 )
|
|
|
+
|
|
|
+[node name="Target" type="Position2D" parent="Launcher"]
|
|
|
+position = Vector2( 0, -200 )
|
|
|
[connection signal="body_entered" from="Catcher" to="Catcher" method="_on_Catcher_body_entered"]
|