Previous Lesson: Lesson 24: Prompting People Using Python
So far, we just keep on learning the basics in Python. But today, I want you to apply all your knowledge and create your own game using Python.
So here, I’ve created my own game and I’ve really used my creativity and imagination to create this game. It’s just a simple one but you can say that it is adventurous because it really is.
The setting would be on an uncharted jungle. And your mission is to find the Pink Panther diamond, and to have it alive. While you are typing and playing this game, you’ll notice that it is inspired by many movies. That’s because I love movies. Particularly, these movies are Pink Panther, Brave, and finally (and majorly), The Pirates of the Caribbean.
Now let’s carry on to typing this game. Go ahead and make a new file and name it Zedd’s_game.py.
Note: Use Zedd’s for the filename because this is my game. You can do yours later.
This is the link to the file: https://github.com/zeddrix/diamond-in-black-pearl/blob/master/game.py.
Step-by-Step Steps:
- Type all these down on your editor. You can pause the video at anytime you’d want to.
- Finally, after typing these all down, play the game.
- After that, map the flow of the game on your notebook. Meaning, write down the step-by-step flow of the game until you’ve won it.
- Create your own game using Python. This will be your first and last project for Python. Work on it for a week.
- Finally, get back to Zedd’s_game.py and improve it as much as you can.
I hope you enjoy playing my game and have fun making yours, too!