Game Design Project 1:
A simple first project

Due: Feb 9th at 11:59pm


In This project you will build your first pygame project. You will create an object from an image. Have it respond to keyboard controls by moving. Many of you are still new to python so I'm assigning a fairly painless first project. As a relaxation of the syllabus rules, You may use as much code for your L Line book as you like so long as it is all referenced.

a picture of my implementation of lab1


Create a pygame windowed program. Your program needs to have a sprite class for a moving object (the rabbit in my project above.). The class should have at least the __init__ and update methods. You  can use any (appropriate) image file that you might have. I suggest png format images as described in the lecture. Your object needs to respond to the left right, up and down arrow keys moving in the appropriate direction when the keys are pressed. Your object should not move off of the screen, if the user tries to move off of the screen, simply stop the movement at the edge of the screen.

You also need a second non moving object sprite (the egg in my version above). When the first object collides with the second object, your second object should dissappear.

Your program should end when the user closes the window.

I'm relaxing the maximum 20% "reused" code limit in one case for this lab. You may use as much code from the book as you like so long as you reference all of it that you borrow.

Additional Requirements and Submission: