Game development: newbie questions

Discussion in 'iOS Programming' started by peanutman, Jun 25, 2009.

  1. peanutman macrumors newbie

    Joined:
    Jun 25, 2009
    #1
    Hi!

    I just stepped into the amazing world of iPhone development and have some questions. I have experience in programming c++/.net/java but no objective-c yet. My grapics knowledge is pretty much restricted to 2D DirectDraw.

    As my first app I wanted to make a simple 2d game, but I'm a bit confused on what to use.

    From the apple tutorial videos I learned there are 3 api's for graphics (Quartz, Core Animation, OpenGL).

    So my first question is, for a 2d game, should I do quartz or opengl? The game will have objects that move all the time, so a decent framerate is required. From the video I noticed quartz has everything I want (alpha, gradients, primitives, images, ...) but is it fast enough?

    Secondly, are there any good tutorials that handle 2d games? stuff like rendering text, the game loop, animation, ...?
     
  2. Darkroom Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #2
    if i were you, i would study OpenGL (ES). although the learning curve is steeper than Quartz / Core Animation, it's generally more powerful and (i believe) faster than Quartz / Core Animation. In addition, in the event you should choose to port your work to other devices, OpenGL is cross platform.
     
  3. Muncher macrumors 65816

    Muncher

    Joined:
    Apr 19, 2007
    Location:
    California
    #3
    Actually, OpenGL is fairly abstract; it's not that hard to learn. If you want game development on the iPhone, OpenGL is probably the way to go. If you're learning Objective-C and OpenGL and the iPhone SDK at the same time you're up for a challenge. I would recommend learning OpenGL, then Objective C, and then the iPhone SDK. OpenGL will be easiest for you to comprehend as it is procedural.

    I can't tell you much about Quartz if you want to go that route, but it doesn't sound all that bad. The main disadvantage of using OpenGL is that you have to write a game engine from scratch. With Quartz I assume there is more already in place.
     
  4. lazydog macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #4
    OpenGL ES is pretty easy to pick up especially for 2D stuff. Plus you can carry on using C++ which you already know. If you don't mind implementing your game interface using OpenGL then you could get away with only learning the minimum amount of Objective-C, just enough to handle the touch interface, accelerometer and game loop. You'll need to think about sound too - plenty of options here too that don't require you to know Objective-C.

    ß e n
     

Share This Page