Level 5: Bonus Challenge - IncrediCoders/Python1 GitHub Wiki
Intelli-Scents added this page on March 14, 2023
It's time for an extra challenge. This time you're going to create your own level designs!
To start this bonus challenge, open your completed Level 5 code and build your own levels by following along with my instructions below!
Folder setup:
- First, copy the Assets folder and rename it Assets1. This will save all the original level designs in the Assets 1 folder (in case you need to switch back to use those levels).
- In your new Assets folder (named Assets), open Level1.txt. You will see a file that includes 0's, 1's, 2's, two 3's and one 4. Each of these numbers represents a different part of a level. The 0's are the air tiles (open space where the player can run, jump, or fly), the 1's are the ground tiles (regular tiles to run on), the 2's are the pain tiles (that kill or cause damage to the player), the 3's are the exit portals (you need two 3 tiles), and the 4 is the entrance portal (you need just one 4 tile).
You will use these numbers to design your own custom level:
- Delete numbers in the original file and replace them with the numbers (tiles) of your choosing.
- Make sure to save the file after you are done editing it.
- Test the level by playing the game. In videogame production, this is done by the developers and then is often done at scale by multiple people, in a process called Quality Assurance. As you play the game, take notes of all the changes you want to make. Return to Step 1 above, to refine your game level(s).
Special Note: In order to create the exit portal, there must be two 3's stacked vertically. The entrance portal, on the other hand, only requires one 4 to create (put the 4 two or three tiles above the surface). Each level should only have one entrance portal and one exit portal.
If you want to create more than one custom level, open any of the other level text files and repeat the process.
After you are finished creating your new text file, run the game to play your new level!
Next, you can take on the other challenges to add a time limit and to add batteries (health) to the game! When you're done, you can move on to Level 6, the Boss Battle!
Challenge 1: In this challenge, you are going to write code that will add a time limit for 45 seconds for each stage of the game.
Challenge 2: In this challenge, you are going to add batteries to the game. Paul collects the batteries to regain his health.
-
Level 5: Unplugged Activity - In this activity, you're going to test out videogame and velocity while physically moving through an obstacle course!
-
Level 5: Rewards - If you completed the Creeper Chase program that we talked about, 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 **WHAT **Award digital download, to show off your accomplishment!
-
Level 5: Creeper Chase: All Online Articles - Return back to the main Level 5 page, with all our online resources!
After you're completely done with Level 5 (did you do the challenges?), then it's time to move on to Level 6! While you read through Level 6 in your book, you can check out the resources from Paul Python, as he teaches you how to build the Boss Battle program:
I hope you had fun learning about the Creeper Chase game!
-- Intelli-Scents