Forráskód Böngészése

:wrench: Slightly increase brick collision shape

- Prevent tunnel effect bug (balls crossing bricks through interlap).
- Prevent ghost collisions (balls turning back on flat joined bricks).
DricomDragon 2 éve
szülő
commit
e49ad0d03c
1 módosított fájl, 2 hozzáadás és 3 törlés
  1. 2 3
      godot/component/entity/brick/Brick.tscn

+ 2 - 3
godot/component/entity/brick/Brick.tscn

@@ -8,7 +8,7 @@
 [ext_resource path="res://effect/particle/impact/Impact.tscn" type="PackedScene" id=6]
 
 [sub_resource type="RectangleShape2D" id=1]
-extents = Vector2( 20, 10 )
+extents = Vector2( 21, 11 )
 
 [node name="Brick" type="StaticBody2D"]
 collision_layer = 4
@@ -27,7 +27,6 @@ texture = ExtResource( 1 )
 centered = false
 
 [node name="ImpactSplash" parent="MainColor" instance=ExtResource( 6 )]
-emitting = false
 
 [node name="Shape" type="CollisionShape2D" parent="."]
 position = Vector2( 20, 10 )
@@ -36,5 +35,5 @@ shape = SubResource( 1 )
 [node name="LifeDisplay" type="Node2D" parent="."]
 script = ExtResource( 4 )
 [connection signal="impact" from="." to="MainColor/ImpactSplash" method="splash_at"]
-[connection signal="life_changed" from="." to="MainColor" method="_on_Brick_life_changed"]
 [connection signal="life_changed" from="." to="LifeDisplay" method="_on_Brick_life_changed"]
+[connection signal="life_changed" from="." to="MainColor" method="_on_Brick_life_changed"]