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

daggoth

macrumors newbie
Original poster
Jan 23, 2009
4
0
Okay so I've got a few questions on how to set up a 2d game in Xcode/Interface Builder. I'm new to both so I'm sorry if these questions are stupid or obvious. I was wondering how I would load a map file onto the screen so that you can travel on it. Would it be better to use an OpenGL View or a Custom View? And with either one how would I go about loading it in. Would it just be better to create it all in OpenGL? Any other advice on how to use Interface Builder would be helpful in general since I'm fairly confused.
 

daggoth

macrumors newbie
Original poster
Jan 23, 2009
4
0
And I guess this also applies to the troubles I've been having creating a 2d level editor as well....
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
It's going to take a lot of work to write your own game engine and if you're new to programming even longer. I'd suggest using one of the existing game engines out there instead (Unity, Ogre, etc).
 

daggoth

macrumors newbie
Original poster
Jan 23, 2009
4
0
No I'm not new to programming I've just come over from the dark side (PC). I use to program in C++ and I have a pretty good grasp of Objective-C it's just Xcode and Interface Builder are pretty confusing...at least to me.
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
This should get you started on how to add a view:

http://cocoadevcentral.com/d/intro_to_quartz_two/

The same method can be used for OpenGL but you need to use an NSOpenGLView instead. Either way you should subclass that or an NSView.

If you're not sure whether you should use Quartz or OpenGL for your game, I'd suggesting reading up on those technologies and getting a better grasp of what they do.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.