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
- I just unlocked the "Super Swarm Sunday" badge on @foursquare! Go team! http://t.co/jg1u7Blz 4 hours ago
- I'm at Super Swarm Sunday w/ @michaelmurphy @aaronfeng @benatnewdigs @unystartups @amblatx1 @skeeterharris @ianmikutel http://t.co/pPsid8Aj 4 hours ago
- RT @mattgemmell: CGPathCreateCopyByStrokingPath() (new in iOS 5 / Lion). I've wanted this function for as long as I've written UI code. ... 2012/02/04
Github
Tags
animation App Store Artwork Evolution Boost Boot Camp C++ cross platform default values development Dual Monitors function pointers Gears of War 2 git GLUT graphics ImagineRIT Impulse inheritance iOS iPad iPhone Macbook Pro Mac OS X MacPorts member functions Objective-C OpenGL PAX 10 player/stage polymorphism programming remote control RIT Robot robotics SCM static methods STL svn 1.6 version control Windows XP Xbox 360 Xcode xcode 3.1.2 XNA






