[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 bounce = 1.0 [sub_resource type="RectangleShape2D" id=6] extents = Vector2( 50, 300 ) [sub_resource type="RectangleShape2D" id=7] extents = Vector2( 300, 50 ) [sub_resource type="ConvexPolygonShape2D" id=1] points = PoolVector2Array( 0, 0, 40, 0, 40, 20, 0, 20 ) [sub_resource type="TileSet" id=2] 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( 1 ), "shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) } ] 0/z_index = 0 [sub_resource type="RectangleShape2D" id=8] extents = Vector2( 200, 50 ) [node name="Node2D" type="Node2D"] [node name="Walls" type="StaticBody2D" parent="."] physics_material_override = SubResource( 5 ) [node name="Left" type="CollisionShape2D" parent="Walls"] position = Vector2( -50, 200 ) shape = SubResource( 6 ) [node name="Right" type="CollisionShape2D" parent="Walls"] position = Vector2( 450, 200 ) shape = SubResource( 6 ) [node name="Top" type="CollisionShape2D" parent="Walls"] position = Vector2( 200, -50 ) shape = SubResource( 7 ) [node name="Grid" type="TileMap" parent="."] mode = 2 tile_set = SubResource( 2 ) cell_size = Vector2( 40, 20 ) cell_custom_transform = Transform2D( 40, 0, 0, 20, 0, 0 ) format = 1 tile_data = PoolIntArray( 65540, 0, 0, 65541, 0, 0, 393217, 0, 0, 393218, 0, 0, 393223, 0, 0, 393224, 0, 0, 458753, 0, 0, 458754, 0, 0, 458759, 0, 0, 458760, 0, 0, 524289, 0, 0, 524290, 0, 0, 524295, 0, 0, 524296, 0, 0, 720899, 0, 0, 720900, 0, 0, 720901, 0, 0, 720902, 0, 0 ) [node name="Ball" parent="." instance=ExtResource( 1 )] position = Vector2( 306.503, 282.76 ) linear_velocity = Vector2( 100, -100 ) [node name="Ball2" parent="." instance=ExtResource( 1 )] position = Vector2( 280.601, 315.137 ) linear_velocity = Vector2( 100, -100 ) [node name="Ball3" parent="." instance=ExtResource( 1 )] position = Vector2( 254.699, 347.514 ) linear_velocity = Vector2( 100, -100 ) [node name="Catcher" type="Area2D" parent="."] position = Vector2( 200, 470 ) 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"]