Build One
Here’s the first build using a new design. I’m rewriting most of the game from an object oriented approach to break it into more manageable pieces. The original code base was growing over 1200 lines.
Currently all I’ve implemented here is better mouse interaction with the turret and improved handling of the projectiles as they’re firing from the turret.
Mouse click/drag – rotates turret
Space bar – shoots a projectile
One of the problems I was having was that I had failed to initialize all the variables in the projectile class. It caused a lot of erratic behavior. Always remember to initialize all variables, or you’re going to be stuck with the current value from a previous program in memory.
Here’s the Build1, all the files need to be unzipped to the same location.
Artwork Evolution
Facebook
@PaulSolt
- RT @flexibits: Happy 1st Birthday, Fantastical! http://t.co/bIcVDgbZ 2012/05/18
- @IAmReynolds thanks, I think it's the color choice that made it look good. Gradient colors similar to the line color. 2012/05/17
- @rwenderlich I'm interested if this is still an option. I did a text-based risk game back in high school. It could work for an iPad app. 2012/05/16
Github
Tags
animation App Store Artwork Evolution Boost Boot Camp C++ cross platform development Dual Monitors function pointers Gears of War 2 gestures git GLUT inheritance iOS iPad iPhone Macbook Pro Mac OS X MacPorts member functions Objective-C OCUnit OpenGL player/stage polymorphism presentation programming remote control RIT SCM slides static methods STL svn 1.6 tdd testable code testing unit testing version control Windows XP Xbox 360 Xcode xcode 3.1.2






