proj3

proj3 - CS32ProjectAlert Hint#1:...

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 20+ 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 Document Right Arrow Icon
Project #3 : Nachenroids Idea : You’re going to write a simple video game where  the player guides their spaceship and destroys asteroids  and enemy ships. 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 : Nachenroids In this project, the  Player  has to  destroy an endless  number of asteroids and alien ships. Asteroids come in various sizes and shapes!  When they’re shot by the player, they break up into  smaller asteroids! (DANGER!) There are two types of alien ships. The first type of alien simply likes to fly left or right  through the asteroid field. The second type of alien is less friendly.  He always attempts to fly his ship into the player. (eek) Aliens randomly drop “extra-life” capsules when they die!
Background image of page 3

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

View Full Document Right Arrow Icon
Project #3 : Nachenroids Why use inheritance? Well, take all of our space objects (aliens,  asteroids, extra-life capsules, the player)… They can all  move around and rotate . They  also all have  x,y coordinates  and some have  health points . So why would you write 5 separate classes  from  scratch  when all of your classes share so much in  common? Instead, it makes sense to have a Space Object base class that has 
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.

{[ snackBarMessage ]}

Page1 / 9

proj3 - CS32ProjectAlert Hint#1:...

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