Anyone has Cocoa tutorials or simple game sample code?

Member
Posts: 24
Joined: 2002.05
Post: #1
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
Quote this message in a reply
Member
Posts: 304
Joined: 2002.04
Post: #2
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/Sa...ics_3D.htm>
<http://developer.apple.com/games/samplecode.html>
<http://developer.apple.com/samplecode/Sa.../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
Quote this message in a reply
Moderator
Posts: 608
Joined: 2002.04
Post: #3
I would recommend looking at the Missile Command source in the source code section.
Quote this message in a reply
Criollo
Unregistered
 
Post: #4
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
Quote this message in a reply
Moderator
Posts: 3,577
Joined: 2003.06
Post: #5
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?
Quote this message in a reply
Member
Posts: 72
Joined: 2006.10
Post: #6
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.

- Sohta
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Some Game / Engine Source code in C++ and MSVC kiavash2k 1 5,313 Apr 12, 2012 11:35 PM
Last Post: DJyStyler
  Game code organization mk12 6 4,841 Aug 21, 2010 11:10 AM
Last Post: mk12
  Microsoft is providing game writing tutorials! Baldock 3 2,789 Apr 21, 2006 09:13 PM
Last Post: Justin Brimm
  Free sample chapter from Physics for Game Programmers Leisure Suit Lurie 9 6,105 Jul 25, 2005 05:14 PM
Last Post: codemattic
  Simple Physics Game Zenith 8 5,569 Jan 13, 2004 10:01 PM
Last Post: Josh