Adding the Sound of the Ball Hitting the Honeycombs
Right-click the Beehive Silverlight project and choose Add Existing Item.
Locate the block.mp3 file in the Audio folder and double-click to add it to the project.
In the Objects and Timeline panel, select the first honeycomb in the list, then click the arrow to the left of the name to expose the Collision Behavior. Select the collision behavior. You will now link the sound file to the honeycomb in the same manner as the paddle.
In the Collision properties section, click the Audio menu and scroll through the list until you locate block.mp3. Select this value. Now you will need to repeat this step for all of the remaining honeycombs. No shortcuts here, unfortunately!
Select each honeycomb in order and expose the collision behavior. Set the value in the Collision Properties section to Block.mp3. Repeat these steps until each honeycomb has the same properties. Tip: If any of the honeycombs happens to be missing a behavior, you can reapply it by open the Assets panel, clicking on the Behaviors category and dragging the Collision behavior onto the honeycomb. Just be sure to select the Collide With All checkbox in addition to setting the Audio source.
Test your application by pressing F5 and now each time the ball hits a honeycomb a sound is played.
Adding the Sound of the Ball Hitting the Game Walls
Right-click on the Beehive Silverlight project and choose Add Existing Item.
Locate the Wall.mp3 file in the Audio folder and double-click it to add it into the project.
In the Objects and Timeline panel, select the Top_Wall object in the list, then click the arrow to the left of the name to expose the Collision Behavior. Select this collision behavior.
In the Collision properties section, click the Audio menu and scroll through the list until you locate Wall.mp3.
Repeat steps 3 and 4 but use the three other walls: Left Wall, Right Wall, and Bottom Wall.