modified collision layers so that the balls stop colliding with one another
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
[ext_resource type="Script" path="res://balls/ball.gd" id="1_ija2k"]
|
[ext_resource type="Script" path="res://balls/ball.gd" id="1_ija2k"]
|
||||||
|
|
||||||
[node name="Ball" type="CharacterBody2D"]
|
[node name="Ball" type="CharacterBody2D"]
|
||||||
|
collision_layer = 4
|
||||||
|
collision_mask = 10
|
||||||
motion_mode = 1
|
motion_mode = 1
|
||||||
floor_stop_on_slope = false
|
floor_stop_on_slope = false
|
||||||
script = ExtResource("1_ija2k")
|
script = ExtResource("1_ija2k")
|
||||||
|
|||||||
Binary file not shown.
@@ -0,0 +1,3 @@
|
|||||||
|
[gd_scene format=3 uid="uid://c1i1fp3xbp6ly"]
|
||||||
|
|
||||||
|
[node name="Block" type="Sprite2D"]
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 800 B |
@@ -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
|
||||||
@@ -21,6 +21,12 @@ window/size/viewport_width=1920
|
|||||||
window/size/viewport_height=1080
|
window/size/viewport_height=1080
|
||||||
window/stretch/mode="viewport"
|
window/stretch/mode="viewport"
|
||||||
|
|
||||||
|
[layer_names]
|
||||||
|
|
||||||
|
2d_physics/layer_2="boundary"
|
||||||
|
2d_physics/layer_3="ball"
|
||||||
|
2d_physics/layer_4="block"
|
||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
renderer/rendering_method="gl_compatibility"
|
renderer/rendering_method="gl_compatibility"
|
||||||
|
|||||||
+18
-16
@@ -56,6 +56,8 @@ horizontal_alignment = 1
|
|||||||
|
|
||||||
[node name="WorldBoundary" type="Area2D" parent="GameContent"]
|
[node name="WorldBoundary" type="Area2D" parent="GameContent"]
|
||||||
position = Vector2(1140, 540)
|
position = Vector2(1140, 540)
|
||||||
|
collision_layer = 2
|
||||||
|
collision_mask = 4
|
||||||
script = ExtResource("3_w4mye")
|
script = ExtResource("3_w4mye")
|
||||||
|
|
||||||
[node name="Top" parent="GameContent/WorldBoundary" instance=ExtResource("4_455ct")]
|
[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="Balls" type="Node2D" parent="GameContent"]
|
||||||
|
|
||||||
[node name="Ball" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(687, 534)
|
position = Vector2(791, 656)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball2" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball2" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(971, 920)
|
position = Vector2(1049, 563)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball3" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball3" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(1641, 958)
|
position = Vector2(1382, 687)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball4" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball4" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(482, 986)
|
position = Vector2(1289, 856)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball5" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball5" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(899, 280)
|
position = Vector2(619, 256)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball6" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball6" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(1427, 577)
|
position = Vector2(663, 857)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball7" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball7" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(1330, 823)
|
position = Vector2(859, 252)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball8" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball8" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(1544, 413)
|
position = Vector2(958, 792)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball9" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball9" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(1646, 179)
|
position = Vector2(1418, 412)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball10" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball10" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(1666, 660)
|
position = Vector2(1677, 692)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball11" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball11" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(516, 671)
|
position = Vector2(1610, 877)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball12" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball12" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(553, 174)
|
position = Vector2(1394, 185)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball13" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball13" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(1303, 479)
|
position = Vector2(1285, 546)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball14" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball14" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(943, 726)
|
position = Vector2(1078, 172)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball15" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball15" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(1363, 282)
|
position = Vector2(1562, 537)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
[node name="Ball16" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
[node name="Ball16" parent="GameContent/Balls" instance=ExtResource("3_14yi2")]
|
||||||
position = Vector2(1135, 158)
|
position = Vector2(1507, 299)
|
||||||
motion_mode = 0
|
motion_mode = 0
|
||||||
floor_stop_on_slope = true
|
floor_stop_on_slope = true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user