diff --git a/balls/ball.tscn b/balls/ball.tscn index 71d2861..3caf5b4 100644 --- a/balls/ball.tscn +++ b/balls/ball.tscn @@ -3,6 +3,8 @@ [ext_resource type="Script" path="res://balls/ball.gd" id="1_ija2k"] [node name="Ball" type="CharacterBody2D"] +collision_layer = 4 +collision_mask = 10 motion_mode = 1 floor_stop_on_slope = false script = ExtResource("1_ija2k") diff --git a/blocks/block.pdn b/blocks/block.pdn new file mode 100644 index 0000000..2fa0ea6 Binary files /dev/null and b/blocks/block.pdn differ diff --git a/blocks/block.tscn b/blocks/block.tscn new file mode 100644 index 0000000..9be5cd9 --- /dev/null +++ b/blocks/block.tscn @@ -0,0 +1,3 @@ +[gd_scene format=3 uid="uid://c1i1fp3xbp6ly"] + +[node name="Block" type="Sprite2D"] diff --git a/blocks/block.webp b/blocks/block.webp new file mode 100644 index 0000000..18ca2e9 Binary files /dev/null and b/blocks/block.webp differ diff --git a/blocks/block.webp.import b/blocks/block.webp.import new file mode 100644 index 0000000..df0b290 --- /dev/null +++ b/blocks/block.webp.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c7ejgh4t0c7cw" +path="res://.godot/imported/block.webp-04f85b31d8e2c5ce551b7e59a7a1585d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://blocks/block.webp" +dest_files=["res://.godot/imported/block.webp-04f85b31d8e2c5ce551b7e59a7a1585d.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/project.godot b/project.godot index 18ccf4a..f0fc98e 100644 --- a/project.godot +++ b/project.godot @@ -21,6 +21,12 @@ window/size/viewport_width=1920 window/size/viewport_height=1080 window/stretch/mode="viewport" +[layer_names] + +2d_physics/layer_2="boundary" +2d_physics/layer_3="ball" +2d_physics/layer_4="block" + [rendering] renderer/rendering_method="gl_compatibility" diff --git a/scenes/level.tscn b/scenes/level.tscn index 0691b21..ce61fe9 100644 --- a/scenes/level.tscn +++ b/scenes/level.tscn @@ -56,6 +56,8 @@ horizontal_alignment = 1 [node name="WorldBoundary" type="Area2D" parent="GameContent"] position = Vector2(1140, 540) +collision_layer = 2 +collision_mask = 4 script = ExtResource("3_w4mye") [node name="Top" parent="GameContent/WorldBoundary" instance=ExtResource("4_455ct")] @@ -77,82 +79,82 @@ boundary_invert_axis = 0 [node name="Balls" type="Node2D" parent="GameContent"] [node name="Ball" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(687, 534) +position = Vector2(791, 656) motion_mode = 0 floor_stop_on_slope = true [node name="Ball2" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(971, 920) +position = Vector2(1049, 563) motion_mode = 0 floor_stop_on_slope = true [node name="Ball3" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(1641, 958) +position = Vector2(1382, 687) motion_mode = 0 floor_stop_on_slope = true [node name="Ball4" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(482, 986) +position = Vector2(1289, 856) motion_mode = 0 floor_stop_on_slope = true [node name="Ball5" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(899, 280) +position = Vector2(619, 256) motion_mode = 0 floor_stop_on_slope = true [node name="Ball6" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(1427, 577) +position = Vector2(663, 857) motion_mode = 0 floor_stop_on_slope = true [node name="Ball7" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(1330, 823) +position = Vector2(859, 252) motion_mode = 0 floor_stop_on_slope = true [node name="Ball8" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(1544, 413) +position = Vector2(958, 792) motion_mode = 0 floor_stop_on_slope = true [node name="Ball9" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(1646, 179) +position = Vector2(1418, 412) motion_mode = 0 floor_stop_on_slope = true [node name="Ball10" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(1666, 660) +position = Vector2(1677, 692) motion_mode = 0 floor_stop_on_slope = true [node name="Ball11" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(516, 671) +position = Vector2(1610, 877) motion_mode = 0 floor_stop_on_slope = true [node name="Ball12" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(553, 174) +position = Vector2(1394, 185) motion_mode = 0 floor_stop_on_slope = true [node name="Ball13" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(1303, 479) +position = Vector2(1285, 546) motion_mode = 0 floor_stop_on_slope = true [node name="Ball14" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(943, 726) +position = Vector2(1078, 172) motion_mode = 0 floor_stop_on_slope = true [node name="Ball15" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(1363, 282) +position = Vector2(1562, 537) motion_mode = 0 floor_stop_on_slope = true [node name="Ball16" parent="GameContent/Balls" instance=ExtResource("3_14yi2")] -position = Vector2(1135, 158) +position = Vector2(1507, 299) motion_mode = 0 floor_stop_on_slope = true