Skip to content

Commit b5b4309

Browse files
committed
pong_game: Drop Ball scene's orphan child nodes
Drop unused WallAudioStreamPlayer and PaddleAudioStreamPlayer. They are replaced with the Block Code's sound blocks. Also, disconnect the orphan _on_body_entered callback. The body_entered signal will be caught by Block Code's "On body entered" block. https://phabricator.endlessm.com/T35501
1 parent 04f3df7 commit b5b4309

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

pong_game/ball.tscn

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
[gd_scene load_steps=7 format=3 uid="uid://c7l70grmkauij"]
1+
[gd_scene load_steps=5 format=3 uid="uid://c7l70grmkauij"]
22

33
[ext_resource type="Script" path="res://pong_game/ball.gd" id="1_vdrab"]
44
[ext_resource type="Texture2D" uid="uid://bcgr5amsq3jfl" path="res://pong_game/ball.png" id="2_xkrmm"]
5-
[ext_resource type="AudioStream" uid="uid://bc7jd3d8m5spt" path="res://pong_game/wall_hit.ogg" id="3_mjbsd"]
6-
[ext_resource type="AudioStream" uid="uid://jk0oapxjw354" path="res://pong_game/paddle_hit.ogg" id="4_skr8k"]
75

86
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_c3m63"]
97
friction = 0.0
@@ -31,11 +29,3 @@ shape = SubResource("CircleShape2D_sntrn")
3129
[node name="Sprite2D" type="Sprite2D" parent="."]
3230
unique_name_in_owner = true
3331
texture = ExtResource("2_xkrmm")
34-
35-
[node name="WallAudioStreamPlayer" type="AudioStreamPlayer" parent="."]
36-
stream = ExtResource("3_mjbsd")
37-
38-
[node name="PaddleAudioStreamPlayer" type="AudioStreamPlayer" parent="."]
39-
stream = ExtResource("4_skr8k")
40-
41-
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

0 commit comments

Comments
 (0)