Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am brand new to Xcode, and I am also brand new Objective-C programmer.

I was wondering if it is possible to create simple Mac games with Xcode. If it's not possible, could you recommend me some good, cheap game engines?

share|improve this question
3  
Xcode is simply an IDE. It's probably better if you ask (or search yourself) for creating games using Objective-C, for example. –  DMan Dec 8 '11 at 2:42
    
Could you guys tell me where I can find Objective-C, mac game creation tutorials? –  CocoaCoder Dec 8 '11 at 14:55
2  
Cocos2D-iPhone is a good choice! ;) –  Kjuly Jan 2 '12 at 3:49
add comment

3 Answers 3

up vote 7 down vote accepted

Xcode can indeed be used to create games. You can do anything a Mac/iOS device is capable of by programming in Xcode.

I think you should focus on what part of the project you want to focus on. As you state you are a brand new Objective-C programmer (welcome). In my opinion it would be quite a mouth full to try and just into Objective-C programming whilst taking on Xcode AND game development (starting with engine design continuing with game design).

If the purpose is to write great games - get a nice engine that fits your needs (3D/2D/??) - have a look at Unity if you like. If the focus is actually learning programming Objective-C and/or Xcode I'd recommend that you make some small utility programs before jumping on to game development. If the point is to simply do game programming consider the alternatives to Objective-C and Xcode - pure C/C++ or even Java.

All that said - I wish you the best of luck in your adventure!

share|improve this answer
    
Thanks for the nice comments :D –  CocoaCoder Dec 8 '11 at 14:54
add comment

If you'd like to learn Objective-C, I suggest you have a look at cocos2d. It's an open-source 2d engine (written in Objective-C) that allows you to write games for iOS or Mac OS using XCode.

It's not as easy to create games with as with a package like Unity, but there are lots of tutorials (and even books) for cocos2d to be found. A good place to start with lots of tutorials is Ray Wenderlichs site.

share|improve this answer
    
Thanks dude it helps :D –  CocoaCoder Dec 8 '11 at 14:56
add comment

Absolutely! XCode is the standard programming IDE for the Mac and iOS. So if your goal is making a game for iOS, you will probably be using XCode along with a few other helping technologies of your choice (e.g. OpenGL ES 2.0).

But since you mentioned game engines I'd also recommend you to use one, since they'll save you a lot of time and effort:

  • If you are planning to make a 2D game take a look at Cocos2D ( http://www.cocos2d-iphone.org/ ). It's quite popular.

  • And if you're planning to make a 3D game, maybe Unity ( http://unity3d.com/unity/ ) would be a good bet for you. It's not Objective-C but it can publish for iOS too, if that's your goal.

share|improve this answer
    
I used unity once, but it turned out to be very complicated :( Thanks for the tips :D –  CocoaCoder Dec 8 '11 at 14:57
2  
@CocoaCoder Quite honestly: If you think Unity is very complicated, then coding objective-c from scratch is going to be complicated as well. –  bummzack Dec 8 '11 at 15:13
    
@bummzack I will do my best to try out unity :D –  CocoaCoder Jan 4 '12 at 1:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.