iDevGames Forums
Anyone has Cocoa tutorials or simple game sample code? - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: Anyone has Cocoa tutorials or simple game sample code? (/thread-6637.html)



Anyone has Cocoa tutorials or simple game sample code? - Achenar - Nov 24, 2003 01:54 AM

Hi everybody

I've grown interest in Cocoa and just got Project Builder, so I want to try my hand at it. I know METAL, but I know it's very different. What I need is some tutorials on the basics of Objective-C or sample codes of simple games.

Thanks


Anyone has Cocoa tutorials or simple game sample code? - codemattic - Nov 24, 2003 02:22 AM

There is this little web site called idevgames.com that has some downloads. check out <http://www.idevgames.com/content/download.php> - do a search for 'cocoa' or 'objective'.

Also go through the tutorials at <http://nehex.idevgames.com/> when it comes back online.

There is also this other little web site for a company called 'Apple.' (go fig) check out:

<http://developer.apple.com/games/>
<http://developer.apple.com/samplecode/Sample_Code/Graphics_3D.htm>
<http://developer.apple.com/games/samplecode.html>
<http://developer.apple.com/samplecode/Sample_Code/Cocoa.htm>

on your hard disk - go to:
<file:///Developer/Documentation/Games/Games.html>
<file:///Developer/Documentation/Cocoa/Cocoa.html>
<file:///Developer/Examples/>
<file:///Developer/Examples/AppKit/>
<file:///Developer/Examples/OpenGL>

and ask questions here!

Good Luck!

hth, Codemattic


Anyone has Cocoa tutorials or simple game sample code? - Josh - Nov 24, 2003 05:57 AM

I would recommend looking at the Missile Command source in the source code section.


Anyone has Cocoa tutorials or simple game sample code? - Criollo - Nov 25, 2003 08:03 PM

The Missile Command download link does not seem to be working atm.

I would recommend checking out the source code for Hooptie, which I've personally found to be very helpful.

Deep Cocoa has a pretty good tutorial for Cocoa using OpenGL.

-Criollo


Anyone has Cocoa tutorials or simple game sample code? - AnotherJake - Nov 25, 2003 10:01 PM

Quote:Originally posted by codemattic
Also go through the tutorials at <http://nehex.idevgames.com/> when it comes back online.
Or for the impatient -You could also just get the tutorials from http://nehe.gamedev.net/ ,which is where they came from originally. Right?


Anyone has Cocoa tutorials or simple game sample code? - sohta - Nov 26, 2003 12:06 PM

Quote:You could also just get the tutorials from http://nehe.gamedev.net/

True, but (sadly) the original cocoa port by Brian Blackburn of the tutorials are not fully compatible with OS X 10.2 and up.

I'd recommend having a look at the new cocoa openGL basecode (always on nehe.gamedev.net). Wich shows a much more efficient way of setting up the openGl context, and also contains a basic Vector class, keyboard event catching and whatnot. Alas, the tutorials aren't on it yet, but it's a good way to get experience I guess.