Just a quick update to the project to fix a few things and change bits and pieces.
First up I’ve moved away from using an NSTimer update method, and gone to just spinning round the main loop. (Thanks once again to 71squared for that). One effect of doing this is that on the simulator it now runs almost too fast – on hardware it’s fine though. To be honest I’m not sure why – I’ve also made a few changes around using the timeDelta (time elapsed between cycles of the main loop) to help smooth things out a bit.
Other things fixed / changed:
The game now ends if the invaders land.
Improvements to the key controls – I’ve discovered you can get a hash value for a particular touch which makes the input logic work much nicer.
Fixed a bug whereby the number of bombs on level 2 and beyond decreased.
Changed it so that if you lock the iPhone/iTouch it doesn’t still run around the main loop / render.
Bit of a tidy up.
Here’s the latest project: (removed)
Nice, looks like I have a lot of catching up to do!
Hey, thanks for this! Excellent example!
Thanks – really appreciate the feedback.
It’s looking really good and your obviously making some great progress. I’ll certainly be checking the code out as I’ve just started to handle the touch hashes myself, so I’ll see how you have handled that
)
Keep up the great work.
Mike
Thanks Mike. Got to be honest and say that I couldn’t find any way to track individual fingers until I heard you mention the hash values on one of your tutorials…(I thought they must exist but couldn’t find them!).
Have a good holiday – thanks again for the tutorials…