| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 | [gd_scene load_steps=14 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][sub_resource type="PhysicsMaterial" id=1]friction = 0.0bounce = 1.0[sub_resource type="RectangleShape2D" id=2]extents = Vector2( 50, 300 )[sub_resource type="RectangleShape2D" id=3]extents = Vector2( 300, 50 )[sub_resource type="RectangleShape2D" id=4]extents = Vector2( 200, 50 )[sub_resource type="ConvexPolygonShape2D" id=5]points = PoolVector2Array( 0, 0, 40, 0, 40, 20, 0, 20 )[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 = 00/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, 0, 0 )} ]0/z_index = 0[node name="Root" type="Node"][node name="Background" type="Panel" parent="."]margin_right = 400.0margin_bottom = 400.0__meta__ = {"_edit_use_anchors_": false}[node name="Walls" type="StaticBody2D" parent="."]collision_layer = 2physics_material_override = SubResource( 1 )[node name="Left" type="CollisionShape2D" parent="Walls"]position = Vector2( -50, 200 )shape = SubResource( 2 )[node name="Right" type="CollisionShape2D" parent="Walls"]position = Vector2( 450, 200 )shape = SubResource( 2 )[node name="Top" type="CollisionShape2D" parent="Walls"]position = Vector2( 200, -50 )shape = SubResource( 3 )[node name="Catcher" type="Area2D" parent="."]position = Vector2( 200, 460 )collision_layer = 8collision_mask = 5script = ExtResource( 3 )[node name="Area" type="CollisionShape2D" parent="Catcher"]shape = SubResource( 4 )[node name="Launcher" type="Node2D" parent="."]script = ExtResource( 4 )[node name="Grid" type="TileMap" parent="Launcher" groups=["grid",]]mode = 2tile_set = SubResource( 6 )cell_size = Vector2( 40, 20 )cell_custom_transform = Transform2D( 40, 0, 0, 20, 0, 0 )collision_layer = 4collision_mask = 9format = 1script = ExtResource( 6 )[node name="Target" type="Sprite" parent="Launcher"]position = Vector2( 200, 400 )texture = ExtResource( 5 )[node name="Source" type="Sprite" parent="Launcher"]position = Vector2( 200, 400 )texture = ExtResource( 1 )[node name="ShootDelay" type="Timer" parent="Launcher"]wait_time = 0.1one_shot = true[node name="UI" type="Control" parent="."]visible = falsemargin_right = 40.0margin_bottom = 40.0script = ExtResource( 7 )__meta__ = {"_edit_use_anchors_": false}[node name="Panel" type="Panel" parent="UI"]margin_left = 100.0margin_top = 175.0margin_right = 300.0margin_bottom = 225.0__meta__ = {"_edit_use_anchors_": false}[node name="GameOver" type="Label" parent="UI"]margin_right = 400.0margin_bottom = 400.0text = "Game Over"align = 1valign = 1[connection signal="body_entered" from="Catcher" to="Catcher" method="_on_Catcher_body_entered"][connection signal="game_over" from="Catcher" to="UI" method="_on_Catcher_game_over"][connection signal="get_firing" from="Launcher" to="Launcher" method="_on_Launcher_get_firing"][connection signal="is_full" from="Launcher" to="Launcher/Grid" method="_on_Launcher_is_full"][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="timeout" from="Launcher/ShootDelay" to="Launcher" method="_on_ShootDelay_timeout"]
 |