Platform Game Design - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: Platform Game Design (/thread-1512.html)
Platform Game Design - mconnors - Apr 2, 2009 06:58 PM
Hello folks, I could use a little advice. I am playing around in the iphone SDK with a simple platform game. I have years of action script development so I am trying to make a switch. In flash I would create the background, and place the platforms in that movieclip, then on a loop check collision detection for each platform but I would be able to animate the entire background by referencing the one movie clip and set the x, y on loop as well.
So how is this different if I were to approach the same challenge with cocoa?
Platform Game Design - SethWillits - Apr 3, 2009 11:47 AM
From what you describe, it is no different. You'd do the same things, but using OpenGL for graphics rendering instead of Flash.
You'll need to add some layers of abstraction if you want to work with things in friendlier ways, but the core concepts are the same.
I'm not sure what else to say since it was a pretty broad question.
Platform Game Design - mconnors - Apr 3, 2009 03:18 PM
Thanks, I am looking for the proper direction to search. For me I understand movieclips that can contain movieclips. I can move the entire background referencing one MovieClip and that can contain all the elements of that level of game play. I was wondering what was the equivalent in Obejective C.
Platform Game Design - SethWillits - Apr 3, 2009 09:31 PM
In that context, my first post may have been misleading to you. Objective-C is just a language, not a framework for games. Some of the concepts of how you have done things in Flash and how other frameworks do them are very similar, though. (Which is what I meant originally.) But you'll need to write your own framework to do that kind of thing, or use an existing one like cocos2d.