Initial commit

This commit is contained in:
2025-01-18 14:27:39 +00:00
commit 06dcdb9e4c
11 changed files with 266 additions and 0 deletions

73
level.tscn Normal file
View File

@@ -0,0 +1,73 @@
[gd_scene load_steps=6 format=3 uid="uid://133k2vqcsdfg"]
[ext_resource type="PackedScene" uid="uid://bxmatfh6hpb25" path="res://block.tscn" id="1_6kkux"]
[ext_resource type="PackedScene" uid="uid://bbxc20gvkbtg4" path="res://ball.tscn" id="1_dwwgw"]
[ext_resource type="Script" path="res://level.gd" id="1_gs11x"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_lbv4x"]
size = Vector2(120.5, 772)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1i5ye"]
size = Vector2(555.125, 88.5)
[node name="Game" type="Node2D" groups=["Blocks"]]
script = ExtResource("1_gs11x")
ball_scene = ExtResource("1_dwwgw")
[node name="Background" type="ColorRect" parent="."]
offset_left = -11.0
offset_top = -27.0
offset_right = 504.0
offset_bottom = 753.0
color = Color(0.754947, 1, 0.998037, 1)
[node name="Blocks" type="Node" parent="." groups=["Blocks"]]
[node name="Block4" parent="Blocks" instance=ExtResource("1_6kkux")]
position = Vector2(107, 47)
scale = Vector2(0.5, 0.5)
[node name="Block3" parent="Blocks" instance=ExtResource("1_6kkux")]
position = Vector2(161, 325)
scale = Vector2(0.5, 0.5)
[node name="Block6" parent="Blocks" instance=ExtResource("1_6kkux")]
position = Vector2(138, 481)
scale = Vector2(0.5, 0.5)
[node name="Block5" parent="Blocks" instance=ExtResource("1_6kkux")]
position = Vector2(371, 545)
scale = Vector2(0.5, 0.5)
[node name="Block2" parent="Blocks" instance=ExtResource("1_6kkux")]
position = Vector2(241, 30)
scale = Vector2(0.5, 0.5)
[node name="Block" parent="Blocks" instance=ExtResource("1_6kkux")]
position = Vector2(294, 196)
scale = Vector2(0.5, 0.5)
[node name="BallStartPos" type="Node2D" parent="."]
position = Vector2(246, 609)
[node name="Boundary" type="Node2D" parent="."]
[node name="StaticBody2D" type="StaticBody2D" parent="Boundary"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Boundary/StaticBody2D"]
position = Vector2(539, 375)
shape = SubResource("RectangleShape2D_lbv4x")
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Boundary/StaticBody2D"]
position = Vector2(-62, 377)
shape = SubResource("RectangleShape2D_lbv4x")
[node name="CollisionShape2D3" type="CollisionShape2D" parent="Boundary/StaticBody2D"]
position = Vector2(254.438, -46.25)
shape = SubResource("RectangleShape2D_1i5ye")
[node name="CollisionShape2D4" type="CollisionShape2D" parent="Boundary/StaticBody2D"]
position = Vector2(249, 763)
shape = SubResource("RectangleShape2D_1i5ye")
[connection signal="child_exiting_tree" from="." to="." method="_on_block_removal"]