Cocoa Game Programming for Dummies
There was an earlier thread on here about community tutorials which seems to have died out. I'd like to recommend this idea again.
I've tried several times to learn from some of the sample code that was posted here, but many times the projects are simply too large. I really had no idea where to start, and in many the comments in the code didn't help much.
I don't think they should be anything too ambitious. It does need to start out simple, even if a tutorial only ends up being 100 lines of code and a couple of pages to explain. Here's what I think would be useful:
Drawing an image in a window
Animating images
Moving images using the keyboard (especially arrow keys)
Moving the images using a mouse
Collision Detection
Playing sounds on events
This would be a good start. I think once you get past those basics, you're ready to get going. The only thing I really know how to do out of all of these is drawing images in an NSImageView.
I would be willing to help with this project, to the largest extent I can. I'd probably make a great tester for the tutorials, and can give feedback before they get published.
Also, I have the book Java Game Programming for Dummies, which I think we could use as a basis for tutorials beyond the basics. It includes several different games, such as Pong, Golf, Pool and others. The authors give permission to reuse the code in your own projects, and the book is out of print, so I don't think it is a problem to use them.
I hope others would be interested in doing this along with me.
I've tried several times to learn from some of the sample code that was posted here, but many times the projects are simply too large. I really had no idea where to start, and in many the comments in the code didn't help much.
I don't think they should be anything too ambitious. It does need to start out simple, even if a tutorial only ends up being 100 lines of code and a couple of pages to explain. Here's what I think would be useful:
Drawing an image in a window
Animating images
Moving images using the keyboard (especially arrow keys)
Moving the images using a mouse
Collision Detection
Playing sounds on events
This would be a good start. I think once you get past those basics, you're ready to get going. The only thing I really know how to do out of all of these is drawing images in an NSImageView.
I would be willing to help with this project, to the largest extent I can. I'd probably make a great tester for the tutorials, and can give feedback before they get published.
Also, I have the book Java Game Programming for Dummies, which I think we could use as a basis for tutorials beyond the basics. It includes several different games, such as Pong, Golf, Pool and others. The authors give permission to reuse the code in your own projects, and the book is out of print, so I don't think it is a problem to use them.
I hope others would be interested in doing this along with me.
*plugs Xcode/GLUT tutorial, though unfinished*
http://onesadcookie.is-a-geek.net/~keith/XcodeGLUT
OK, it's not Cocoa, but since you'd probably use GL in Cocoa anyway, it should be mostly relevant...
http://onesadcookie.is-a-geek.net/~keith/XcodeGLUT
OK, it's not Cocoa, but since you'd probably use GL in Cocoa anyway, it should be mostly relevant...
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Game engines with object programming | JonnyThunder | 3 | 7,448 |
Aug 16, 2010 10:42 AM Last Post: SethWillits |
|
| free mac game programming book | jaked | 4 | 5,907 |
Jun 8, 2009 12:48 AM Last Post: SethWillits |
|
| Game Programming Tutorial | markvw | 0 | 3,721 |
Jan 27, 2009 05:10 AM Last Post: markvw |
|
| Game Programming for iPhone? Help with Cocoa and MVC. | holografix | 7 | 5,797 |
Jan 22, 2009 08:17 AM Last Post: AnotherJake |
|
| 2D game programming in SDL | Rhade | 11 | 7,733 |
Sep 15, 2008 03:40 PM Last Post: aardvarc |
|

