Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 11, 2009, 05:09 PM   #1
daggoth
macrumors newbie
 
Join Date: Jan 2009
2d game questions

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 is offline   0 Reply With Quote
Old Apr 11, 2009, 05:14 PM   #2
daggoth
Thread Starter
macrumors newbie
 
Join Date: Jan 2009
And I guess this also applies to the troubles I've been having creating a 2d level editor as well....
daggoth is offline   0 Reply With Quote
Old Apr 12, 2009, 08:00 PM   #3
Geek 2.0
macrumors member
 
Join Date: Mar 2007
Now I know nearly nothing about Xcode and such, but I found a great youtube video that shows a VERY simple tutorial of how to use Interface Editor. Also, are you new to Xcode or to programming? (just curious)

http://www.youtube.com/watch?v=y2MSvZT3zWU
__________________
Aluminum iMac, 24", 2.4 GHz, 4 GB RAM
Geek 2.0 is offline   0 Reply With Quote
Old Apr 12, 2009, 08:47 PM   #4
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
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).
kainjow is offline   0 Reply With Quote
Old Apr 12, 2009, 10:03 PM   #5
daggoth
Thread Starter
macrumors newbie
 
Join Date: Jan 2009
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.
daggoth is offline   0 Reply With Quote
Old Apr 13, 2009, 07:11 AM   #6
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
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.
kainjow is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
[GAME]Rich Dragon Gambling : The Chinese Slot Machine Game Someten iPhone and iPod touch Apps 0 Jun 2, 2013 01:03 AM
[FREE GAME] Catch The Kid - Top10 Drag&Drop Game vklymenko iPhone and iPod touch Apps 2 Feb 15, 2013 11:17 AM
New iPad game: iLogic-Hero -a fun to play Logic-game for all ages CCM2000Games iPad Apps 0 Oct 29, 2012 04:36 PM
Suden game performance issues, Any game drops to low fps after 10-15min LaDirection Mac and PC Games 8 Oct 5, 2012 12:55 AM
[NEW GAME] TRACK & TRICKS. The Crazy Running Game, by Nebula Entertainment Nebula Ent. iPhone and iPod touch Apps 0 Aug 27, 2012 08:29 AM

Forum Jump

All times are GMT -5. The time now is 07:25 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC