Program Arcade GamesWith Python And Pygame
Dutch - Nederlands
Portuguese - Português
Russian - Русский
Spanish - Español
Turkish - Türkçe
Lab 12: Bitmapped Graphics and User Control
Create a graphics based program. You can start a new program, or continue with a prior lab.
This is the checklist for completing this lab:
- Make sure this program is created in its own directory. If you are starting from the template I have at BitBucket, then make sure you start in the “Lab 07 - Bitmapped Graphics and User Control” folder and put everything in there.
- Incorporate at least one function that draws an item on the screen. The function should take position data that specifies where to draw the item. (Note: You will also need to pass a reference to the “screen.” Another note, this is difficult to do with images loaded from a file. I recommend doing this only with regular drawing commands.)
- Add the ability to control an item via mouse, keyboard, or game controller.
- Include some kind of bit-mapped graphics. Do not include bit-mapped graphics as part of your “draw with a function.” That won't work well until we've learned a bit more.
- Include sound. You could make a sound when the user clicks the mouse, hits a key, moves to a certain location, etc. If the sound is problematic, you may skip this part.
- Make sure all files are added to version control. It is easy to forget to add the images and sound files. If instead you need to send the program to someone, the entire directory must be zipped. See Figure 36.2. You do NOT need to do this if you are turning in your program using BitBucket or some other version control system.
Sounds and bitmaps you can use:
It is ok to use code from prior labs, such as Lab 5.
You are not logged in. Log in here and track your progress.
|About||Buy the Book||Help Translate||My College||My Twitter|