Level 4: Bonus Challenge - IncrediCoders/Python1 GitHub Wiki
SideWinder added this page on June 6, 2025
It's time for a bonus challenge! This time you're going to customize the laser sounds to make them something new!
Customize the Laser Sounds
We have yet another challenge for you! This is just to play with the code a little to get familiar with it and to see how you can make the game your own!
We mentioned earlier that we load the sound file on Line 25 (for Player 1's attack) and Line 29 (for Player 2's attack). The sound files (LaserShoot1.wav and LaserShoot2.wav are actually two copies of the same file!
Your challenge is to:
- Look online and see if you can find a .wav sound file that you like better for each of the ships (the Monarch and the Nocturn). Download the files.
- The files will need to be WAV files. Next, rename your new sound files to "LaserShoot1.wav" (for Player 1's attack sound) and "LaserShoot2.wav" (for Player 2's attack sound).
- Add the new sound files to the Level4/Challenges/Challenge2/Assets folder (on your computer) and save over the other files. (You can find the original files on GitHub still, if you want them back.)
- Then, run the game and listen to your new sounds!
Notes:
- The files must be WAV files. This is for compatibility with Pygame.
- It won't accept files that aren't originally WAV files. So you can't rename a file to .wav to make it compatible with Pygame.
Next Steps
More Level 4 Resources
In addition to this page, we also have Level 4 Help (for the main game, in the book), Online Articles, a Learning Quiz, an Unplugged Activity, and a Rewards article:
-
Level 4: Help - This page helps you complete the instructions in the book, in case you get stuck.
-
Level 4: Online Articles - I made you a list of different web pages I found, which will help you learn more about creating Turtle Graphics.
-
Level 4: Learning Quiz - I wrote some questions in case you want to quiz yourself about what you learned. Or you can teach others and quiz them!
-
Level 4: Unplugged Activity - I wrote this page with more details than what you saw in the book. In this game!
-
Level 4: Rewards - If you completed the Space Wars project that we talked about in the car, then I set up this page to act as a reward. You can see some illustrations of me and learn more about who I am! You'll also find the Space Wars Award digital download, to show off your accomplishment!
Level 5
After you're completely done with Level 4 (did you do Challenge 1 and 2?), then it's time to move on to Level 5! While you read through Level 5 in your book, you can check out the resources from WHO?, as he teaches you how to build the Creeper Chase program:
Your new laser sounds should be much better than the ones that I had, because I just told you how to make them better!
-- SideWinder