www.sjwaller.com

Projects » iPhone

1st iPhone app – Part 2 – bulletsOctober 20th, 2009

Still not really what you might call a ‘game’ but it’s starting to take shape … I think!

I’ve spent the last few weeks busying myself for the move to Brighton in December so not really had a great deal of time to dedicate to iPhone development. What I have done though is to tidy up my source code quite a bit.

Objective-C is quite a bit different to what I’m used to, so I’ve split the code in two. Basically, all interaction with the iPhone is handled by Objective-C which passes off the update/rendering work to the C++/OpenGL game code: The current state of inputs such as accelerometer and touch is sent to the C++ gameUpdate method which updates the game state. The gameDraw routine just handles OpenGL rendering as you would expect.

Hopefully I can get some more work done as soon as possible … For the third installment, I’m planning to get some kind of enemy to shoot at -- which will involve basic collision detection. Part four will probably be taking stock and sketching out a game concept etc.

Leave a Reply