Restarting a game level...
This approach works well for my game which has relatively few variables to initialize.
« May 2009 | Main | July 2009 »
The game development process needs to move forward, but there's so much to do. I need to create a roadmap for continuing development. Some highlights should be:
Finalizing the engine with game win/lose conditions
Setting up levels and level progression
Sign up to become a certified developer
Getting a dev device (excuse to get an old iPhone and keep it inactivated)
Improve graphics
For reasons I can't yet fathom, the view attempted to display itsefl before the object with the NSString was fully initialized. I put a check that if the NSString property was nil to not attempt to display it on screen and it works fine now!
Another trick I learned from the folks at the idevgames.com forums is to mirror text using Quartz by setting a scale matrix with an argument of -1 on the direction I want mirrored (vertical or horizontal).
These two issues cleared, the project can finally move forward !
I think my game might be crashing in the sim because of poor memory management.So things compile fine but some NSString objects actually end up null when used because they are being passed around classes. There's no getting around this, I need to understand Objective C memory management, and revisit assign, retain, autorelease...
I'm going to print out some tutorials from here and read them at the gym :)
Still working on the game's engine. It seems every time I add some new feature there's always one little issue that takes forever to fix, and which causes the game to crash in the simulator without yielding any errors or warnings in the compiler.
XCode is definitely NOT debug-friendly!