89. Slingshot refinements

To draw the target building and the flames, I went online and found images that I liked. I then added the images to the project's resources.

To add a project resource, open the Project menu and select Properties from the bottom. In the project's resources window, click the Add Resource drop-down menu and select Add Existing File. Browse to select the resource file and click Open.

I also added WAV audio files for the program to play when the user releases a shot and when a shot hits the ground. The System.Media.SoundPlayer class can play WAV files stored as project resources, so I added those files to the project as resources. Working with those files is relatively easy.

You can find lots of interesting images free ...

Get The Modern C# Challenge now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.