Project: Code Camp Kit
On November 15-16, 2013 more than 200 people gathered for the 4th annual Southern Utah Code Camp. About 75 people competed in the Rookie Kit category. They were given a starter kit for a spaceship adventure game, and 24 hours to create a fun game.
In this assignment, you will be given 2 weeks to create your game from the same starter kit. The assignment is split into two parts, each with its own requirements and due date.
In the first part, you will get to know the starter kit and implement a few potential game features using some step-by-step tutorials that we have provided.
In the second part, you will add your own unique game design and implement the features necessary to make your program work according to your design.
If you don’t have Python and Pygame installed on your system, find the instructions at the end of this document. If you’re working in the CIT lab, Python and Pygame are already installed.
Download the starter kit here:
Unzip the contents, and run the
main.py file. You’ll see
a white rectangle (the spaceship), and red squares (the baddies).
Move the spaceship with the arrow keys, fire bullets with
the space key.
You’ll notice that baddies die when bullets hit them; but the spaceship will never die, even if the baddies hit it.
End the game with the escape key.
Files in the starter kit:
baddie.pyThis file handles all of the information for a single baddie object. It knows how to move a baddie, and draw it as well.
bullet.pyThis file handles all of the information for a single bullet object. It knows how to move a bullet, and draw it as well.
spaceship.pyThis file handles all of the information for the spaceship object. It knows how to move the spaceship, and draw it as well.
game_mouse.pyThis is a low-level support file. Don’t make changes here unless you really want to live on the edge.
main.pyThis is the main program, where you launch the game.
SpaceshipAdventure.pyYou should not need to edit this file, except to change the displayed name of your program.
SpaceshipData.pyThis is the work-horse of the program. It manages all of the objects (baddies, bullets, spacehip) in the game, moving them and checking for collisions, causes the objects to be drawn, etc.
Below is a list of tutorials we have provided to help you get started on making changes to the game. Choose at least 4 of the tutorials, and complete them in your game. Also, add at least 1 feature to your game that is not in the tutorials list. You can do more work, if you feel so inclined.
When you have completed your tasks, pass it off with the lab assistant. If you instructor requires it, zip up your code, and submit it.
Make a plan for how you would like your game to be played. The game design is all yours! We can’t tell you what makes a game good or bad. That’s up to you.
You must add at least 5 additional game features to successfully complete this assignment.
Show your game off to fellow students.
When you have completed your game, pass it off with the lab assistant. If you instructor requires it, zip up your code, and submit it.
Installing Python and Pygame
You’ll need Python and PyGame installed on your system to run and change the game. Follow these instructions to do the setup.
Get Python 2.7.x, the latest version of 2.7, 32-bit version. (We know what we’re talking about. Don’t get a 3.x version of Python. Don’t get a 64-bit version of Python, even if your operating system is 64-bit, still get a 32-bit version.)
Get the 32-bit version of PyGame for Python 2.7. Choose based on your operating system version from the list available.
Get Python first, and apply the installer. Get PyGame second,
and apply the installer. Afterwards, try to launch the
starter kit by running
main.py. This should test that your
installation is working correctly.
Last Updated 09/15/2014