| EECS 110: INTRODUCTION TO PROGRAMMING |
Home General Info Help |
Lectures Homework |
If you pair-program, put both names in comments at the start of all your code files. Pair programming means all work done together!
You have two goals for this final version. Add interactivity to your picture, and make your code modular.
An interactive picture means one where the user can type keys and click on objects or locations on the screen to make things happen. For example, in my Fish picture, I might let users type left and right cursor to speed up and slow down the fish, and click on a fish to make it change direction.
Or I could make a "feed the fish" game. As fish swim, they keep getting smaller and smaller until they disappear. If I click somewhere, food appears and starts falling to the seabed. If a fish crosses the food before it reaches the seabed, the fish "eats" the food and gets a little larger. The goal is to not lose any fish.
Make your interactive picture fun! It could be a game, or an interactive postcard with surprises. Definite points will be earned for creativity and usability.
Modularity in code means that code is not one huge main() function with a dozen global variables. It means code that is
For example, instead of global arrays of x-coordinates, y-coordinates, sizes, directions, and colors, my Fish game should have just one global array of fish structures.
Submit a Zip file following the usual rules, with a folder GAME with your game program main.c and any other code files you may have created for it.