proj3-updated

proj3-updated - CS32 Project Alert! Hint #1: Read the...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
CS32 Project Alert! Hint #1 : Read the entire project spec before starting; it has lots of clues! Hint #2 : Don’t freak out! Hint #3 : Work incrementally. Get one thing to work at a time! Hint #4 : Start early! This project will probably take 30+ hours! Hint #5 : Don’t freak out!
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Project #3 : Scentipede Idea : You’re going to write a replica of the ‘80s video game Centipede! Goals : This is your first big Object Oriented project, so you’re going to be using classes , inheritance and polymorphism . Go virtual functions !!! How should you attack the problem? Incrementally! Write a little code, test it, then write a little more.
Background image of page 2
Project #3 : Scentipede In this project, the player is responsible for tending to a garden! The player must make sure the garden is healthy and bug-free. The player – who is the size of a blade of grass – controls their ship using the arrow keys and fires using the space bar ! Each “bug” uses a different algorithm to decide how to move and what to do. The game continues either the player runs out of lives . There are six (major) types of “ things ” in this video game: The player’s “ship” Scentipedes Scorpions Spiders Ticks Mushrooms If a bug and the player ever collide, then the player loses a life .
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Project #3 : Scentipede Why use inheritance? Well, take all of our Scentipede “things” ( Mushrooms , Players , Ticks , Spiders , Scentipedes and Scorpions )… They share attributes in common: x,y coords, number of lives, etc. So why would you write N similar classes from scratch when all of them share so much in common? Instead, it makes sense to define a class hierarchy and factor out common data and functions shared by all game things… As you approach this problem, you want to make sure that you never write duplicate code ! Thing
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/06/2012 for the course CS 32 taught by Professor Davidsmallberg during the Winter '08 term at UCLA.

Page1 / 11

proj3-updated - CS32 Project Alert! Hint #1: Read the...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online