Frogger for iPhone

Most of my programming experience has either been using forms (Windows Forms, or ASP.NET) or small embedded projects interfacing hardware. Recently I began going through some tutorials for iPhone development. I'm interested in learning Objective-C and the iPhone sdk.

I wanted to make a small frogger-like game to help me learn but I've never really ventured into game development. I would have four buttons (Up, Down, Left, Right) and was curious how to go about the navigation. Would it be smart to make a big grid (matrix) and use that to navigate around the screen? Eventually it'd be nice to use OpenGL but I'm nowhere ready to go into that area yet.

Thanks for any input.


Here is a simple tutorial on Cocoa2D, what you would use to make a 2D game.

There is also a tutorial on touch detection here by the one of the authors of the Coca2D tutorial.

Also, the source-code to a complete, working game could be useful - there are some open-source, complete games listed on my question "Are there any Open-source iPhone applications around?"

You'll need to derive a subclass of UIView and override the keyDown: method in order to get keypresses. There's an NSTimer class, that's good for doing periodic updates, and UIImage, for loading and displaying bitmaps on the screen.

You can probably just use (x,y) coordinates for all the objects you'll draw, rather than having an explicit grid. You can then update the positions of the objects at regular intervals.

Need Your Help

how to pass Javascript variable in Scriptlet

java javascript scriptlet

i desperately need some suggestion on how a javascript variable make available in Scriptlet. i know that javascript runs on client side where scriptlet code runs on the server. But i think there is...

Google Chrome - Fieldset Overflow Bug

html css google-chrome

Google Chrome seems to have a bug when overflowing content inside of a fieldset.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.