Skip to content

Commit 76adc27

Browse files
committed
Pong: add paddles to group
This is needed for the paddle_hit sound to be played via the blocks in the Ball node.
1 parent c9f1967 commit 76adc27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/block_code/examples/pong_game/pong_game.tscn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ func goal_left():
962962

963963
[node name="Space" parent="." instance=ExtResource("1_y56ac")]
964964

965-
[node name="PaddleLeft" parent="." instance=ExtResource("3_hjpbs")]
965+
[node name="PaddleLeft" parent="." groups=["paddles"] instance=ExtResource("3_hjpbs")]
966966
modulate = Color(0.509804, 0.360784, 0.972549, 1)
967967
position = Vector2(64, 544)
968968
collision_mask = 5
@@ -972,7 +972,7 @@ texture = ExtResource("4_ra7bh")
972972
script = ExtResource("3_6jaq8")
973973
block_script = SubResource("Resource_qmak3")
974974

975-
[node name="PaddleRight" parent="." instance=ExtResource("3_hjpbs")]
975+
[node name="PaddleRight" parent="." groups=["paddles"] instance=ExtResource("3_hjpbs")]
976976
modulate = Color(0.509804, 0.360784, 0.972549, 1)
977977
position = Vector2(1856, 544)
978978
collision_mask = 5

0 commit comments

Comments
 (0)