Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Xcode and I am new to Objective-C and Cocoa programming. I want to create a very simple sprite game in Xcode, but I do not know what code I should type or where/how to get started.

It's a simple game where you play as a ball (I was thinking of using an NSButton with a picture) and you jump around until you touch a flag to complete the level. I also want to add a system of sprite detection so that you can kill enemies if you jump on their heads.

share|improve this question

closed as not a real question by bummzack, Josh Petrie, Nicol Bolas, Tetrad Dec 8 '11 at 17:45

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Questions about "How to make an entire Game" are considered off-topic here. Either look for resources/tutorials on the web or get a book about game programming in Objective-C. Feel free to ask more specific questions once you got the basics covered. – bummzack Dec 8 '11 at 15:31
I cannot find any good books and I couldn't find any useful information online... Thanks anyways :D – CocoaCoder Dec 8 '11 at 17:31
That's probably because most games written for the mac would use OpenGL, not Cocoa. – Tetrad Dec 8 '11 at 17:46
In your other question, several people pointed out cocos2d which can be used to create games for Mac OS X. There are tons of tutorials/resources for cocos2d and while most of them are about iOS, there are also some for Mac OS to be found (basics are the same for both platforms anyway). – bummzack Dec 8 '11 at 22:52
up vote 1 down vote accepted

There is a game engine called Cocos2d. Check that out. It's pretty easy to use.

share|improve this answer
Ok, I will thanks dude! :D – CocoaCoder Dec 8 '11 at 17:31

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