Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

robvas

macrumors 68040
Original poster
Mar 29, 2009
3,240
631
USA
I'm new to the Mac and XCode and everything. I've known C for a long time and I've been playing around the with the Fruit book but I don't see anything on interacting with the keyboard, making real-time control loops, etc.

Is there a basic Mac game programming tutorial out there?
 
I recommend going with a cross-platform technology for writing Mac games. For 3D games, try Unity. Its free version lets you make games for Mac, Windows, and the Web.

For 2D games try a cross-platform game framework like SDL, SFML, or Allegro. I use SDL and OpenGL, where I use OpenGL for drawing and SDL for reading player input and creating a window. In the time you would spend learning how to read player input from the keyboard with Cocoa for the Mac, you could learn how to do it in SDL (or SFML or Allegro) and get Windows and Linux support for free.
 
I got SDL setup and now I have spinning polygons!

I bought an OpenGL book a few years back and never did anything with it, so let's hope the information in it isn't obsolete.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.