« May 2009 | Main | July 2009 »

June 30, 2009

Restarting a game level...

I figured out how to restart my level upon pushing a button in the game view controller itself. Simply calling the init method on self works perfectly. I have all the initial conditions hard-coded in there anyway.
This approach works well for my game which has relatively few variables to initialize.

June 25, 2009

laying out levels

I'm going to design every level of the game using graph paper. each square will be 10x10 pixels, so the viewable area will be 440x300 which amounts to...44x30 squares. This way, I can code every element's coordinates easily. I plan to hard code the levels and use a single file which will store the current level and score. I'm doing this becasue there will be only twenty levels and each will have only eight static objects.

June 23, 2009

need to get organized

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


June 21, 2009

figured it out (see previous two posts)

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 !

June 20, 2009

I guess the problem is (lack of) Memory Management

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 :)


June 16, 2009

XCoding and getting nowhere fast...

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!

June 06, 2009

Unmanned Aircraft Idea

Please follow the link to this new solvengineer page.



Hosting by Yahoo!