CS 32 Project 3 Guide - CS 32 Project 3 A BRIEF HOW TO...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 32: Project 3 A BRIEF HOW TO
Image of page 1

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

View Full Document Right Arrow Icon
General Tips Know your enemy Know your friends Start early Develop incrementally Comment your code Test often Divide and Conquer Design an inheritance tree
Image of page 2
The Main Components The Game World – Generating, Maintaining, Deleting – init(), move(), and cleanUp() The Inheritance Tree The HUD
Image of page 3

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

View Full Document Right Arrow Icon
Inheritance Tips What classes will make up the “leaves” of the inheritance tree? Having multiple virtual classes can be useful. Think of them as folders on a computer. Three reasons for inheritance: reusing, specializing, and overriding What are some functions that all actors share? What are some that some of them share? (ex: HP – who has it, who doesn’t?) These are the actors in the game: FrackMan Regular Protestor Hardcore Protestor Boulder Barrels Gold Nuggets Sonar Kit Water Refills Water Squirts
Image of page 4
Sample Inheritance Tree Goodie Actor Nugget Water_Refil l Living_Actor Protestor FrackMan Sonar Kit Hardcore Protestor Boulder Water_Bullet Barrel Dirt What’s good about this tree? What’s bad? Design your tree the way you feel is best.
Image of page 5

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

View Full Document Right Arrow Icon
What’s in a Tick A driving principle in this game is the tick – what appears to be a smooth game involving many actors is really just a very, very quick sequence of actions.
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern