Re: breakout game - openGL or quartz?

2009-12-07 Thread Brian Dittmer
You'll probably want to check out cocos2d-iphone, a great objective-c
framework for writing opengl games on the iphone.  You can find more
info at http://www.cocos2d-iphone.org.

-Brian

On Mon, Dec 7, 2009 at 2:46 AM, Chunk 1978 chunk1...@gmail.com wrote:
 cool game, patrick.  i especially liked your sound.

 On Mon, Dec 7, 2009 at 2:05 AM, Nick Zitzmann n...@chronosnet.com wrote:

 On Dec 6, 2009, at 11:48 PM, Patrick J. Collins wrote:

 and it's been on my mind to make a version for the iPhone..  But before I do
 that, I thought it would be good to just make a version for plain old OS 
 X...
 So before I do this, I wanted to ask the opinions of every one here--  
 Should I
 use OpenGL or quartz/core animation for my graphics drawing?

 This thread is probably going to go OT, but I'd recommend OpenGL. There are 
 plenty of examples of great 2D games that were implemented using a 3D API of 
 some sort; World of Goo immediately comes to mind.

 Also if anyone recommends any particular books or online tutorials for 
 learning
 how to draw simple rectangles and spheres, and make them glow, etc, that 
 would
 be great.

 http://nehe.gamedev.net/

 Nick Zitzmann
 http://www.chronosnet.com/



 ___

 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com

 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/chunk1978%40gmail.com

 This email sent to chunk1...@gmail.com

 ___

 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com

 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/brian.t.dittmer%40gmail.com

 This email sent to brian.t.ditt...@gmail.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: breakout game - openGL or quartz?

2009-12-07 Thread Randall Meadows
On Dec 6, 2009, at 11:48 PM, Patrick J. Collins wrote:

 I wrote a breakout style game for actionscript3:
 http://collinatorstudios.com/dev/super_collins_breakout
 
 and it's been on my mind to make a version for the iPhone..  But before I do
 that, I thought it would be good to just make a version for plain old OS X...
 So before I do this, I wanted to ask the opinions of every one here--  Should 
 I
 use OpenGL or quartz/core animation for my graphics drawing?  I am thinking
 that I want to use OpenGL-- even though the game is 2D, I still would like to
 be able to do gradients and shading and glowing, etc..  Which I am assuming
 isn't going to be as easy to accomplish with quartz/core animation.

I am putting the finishing touches on a 2D game.  I started out with Quartz/CA 
graphics, and while the game was simple enough, I was simply unable to get 
anything near decent performance.  I learned enough OpenGL [ES] in about 15 
hours (all from top hits on googling opengl 2d sample code [I think]) to 
outperform the old code by probably an order of magnitude.  Just for grins, I 
quadrupled the number of objects in my scene (to over several hundred), and I'm 
still getting 60fps with no problem (I'm actually limiting my frame rate to 
that, so I'm sure it would be much higher).  My scenes are rather simple (no 
lighting, glowing, or anything), but still...a *remarkable* difference.

I decided to leave in a few CA animations because they were so simple, and I 
really want to ship RSN; this was my first foray into OpenGL, and I'm now a 
believer.


randy___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: breakout game - openGL or quartz?

2009-12-07 Thread BravoBug Software
Everyone seems to have already pointed you in the right direction, but
as someone who has specific experience making such a game solo
(http://bravobug.com/megabrickbash3000) I wanted to just throw in my
.02 that OpenGL is definitely the way to go. NeHe's tutorials will be
very handy along the way and iDevGames is definitely worth visiting,
as the folks are generally very helpful and know their stuff, and you
can likely get quite a bit of help with all manner of game dev topics
(collision, audio, interface, etc.), not just graphics.

Be sure to also look into OpenAL for your sound effects. And you may
even want to take a peek at a 2D collision/physics library like
Chipmunks (http://code.google.com/p/chipmunk-physics/). It's not
really necessary for a breakout-type game but you might be surprised
at how much work it can save you. And you can do some really cool
stuff with it.

Cheers~
-Matt

On Sun, Dec 6, 2009 at 10:48 PM, Patrick J. Collins
patr...@collinatorstudios.com wrote:
 Hi everyone,

 I wrote a breakout style game for actionscript3:
 http://collinatorstudios.com/dev/super_collins_breakout

 and it's been on my mind to make a version for the iPhone..  But before I do
 that, I thought it would be good to just make a version for plain old OS X...
 So before I do this, I wanted to ask the opinions of every one here--  Should 
 I
 use OpenGL or quartz/core animation for my graphics drawing?  I am thinking
 that I want to use OpenGL-- even though the game is 2D, I still would like to
 be able to do gradients and shading and glowing, etc..  Which I am assuming
 isn't going to be as easy to accomplish with quartz/core animation.

 Also if anyone recommends any particular books or online tutorials for 
 learning
 how to draw simple rectangles and spheres, and make them glow, etc, that would
 be great.

 Thanks!

 Patrick J. Collins
 http://collinatorstudios.com


 ___

 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com

 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/bravobug%40gmail.com

 This email sent to bravo...@gmail.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


breakout game - openGL or quartz?

2009-12-06 Thread Patrick J. Collins
Hi everyone,

I wrote a breakout style game for actionscript3:
http://collinatorstudios.com/dev/super_collins_breakout

and it's been on my mind to make a version for the iPhone..  But before I do
that, I thought it would be good to just make a version for plain old OS X...
So before I do this, I wanted to ask the opinions of every one here--  Should I
use OpenGL or quartz/core animation for my graphics drawing?  I am thinking
that I want to use OpenGL-- even though the game is 2D, I still would like to
be able to do gradients and shading and glowing, etc..  Which I am assuming
isn't going to be as easy to accomplish with quartz/core animation.

Also if anyone recommends any particular books or online tutorials for learning
how to draw simple rectangles and spheres, and make them glow, etc, that would
be great.

Thanks!

Patrick J. Collins
http://collinatorstudios.com


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: breakout game - openGL or quartz?

2009-12-06 Thread Seth Willits
On Dec 6, 2009, at 10:48 PM, Patrick J. Collins wrote:

 So before I do this, I wanted to ask the opinions of every one here--  Should 
 I
 use OpenGL or quartz/core animation for my graphics drawing?

OpenGL. Come join the party:
http://www.idevgames.com/forum/


--
Seth Willits



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: breakout game - openGL or quartz?

2009-12-06 Thread Nick Zitzmann

On Dec 6, 2009, at 11:48 PM, Patrick J. Collins wrote:

 and it's been on my mind to make a version for the iPhone..  But before I do
 that, I thought it would be good to just make a version for plain old OS X...
 So before I do this, I wanted to ask the opinions of every one here--  Should 
 I
 use OpenGL or quartz/core animation for my graphics drawing?

This thread is probably going to go OT, but I'd recommend OpenGL. There are 
plenty of examples of great 2D games that were implemented using a 3D API of 
some sort; World of Goo immediately comes to mind.

 Also if anyone recommends any particular books or online tutorials for 
 learning
 how to draw simple rectangles and spheres, and make them glow, etc, that would
 be great.

http://nehe.gamedev.net/

Nick Zitzmann
http://www.chronosnet.com/



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: breakout game - openGL or quartz?

2009-12-06 Thread Chunk 1978
cool game, patrick.  i especially liked your sound.

On Mon, Dec 7, 2009 at 2:05 AM, Nick Zitzmann n...@chronosnet.com wrote:

 On Dec 6, 2009, at 11:48 PM, Patrick J. Collins wrote:

 and it's been on my mind to make a version for the iPhone..  But before I do
 that, I thought it would be good to just make a version for plain old OS X...
 So before I do this, I wanted to ask the opinions of every one here--  
 Should I
 use OpenGL or quartz/core animation for my graphics drawing?

 This thread is probably going to go OT, but I'd recommend OpenGL. There are 
 plenty of examples of great 2D games that were implemented using a 3D API of 
 some sort; World of Goo immediately comes to mind.

 Also if anyone recommends any particular books or online tutorials for 
 learning
 how to draw simple rectangles and spheres, and make them glow, etc, that 
 would
 be great.

 http://nehe.gamedev.net/

 Nick Zitzmann
 http://www.chronosnet.com/



 ___

 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com

 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/chunk1978%40gmail.com

 This email sent to chunk1...@gmail.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com