Ruby/SDL bindings with MacRuby (Cocoa?)
Is it possible for me to use the Ruby/SDL bindings with MacRuby/Cocoa? Also, can Quartz handle movement of sprites (gifs, pngs, jpgs?) and the like? Would Quartz be just fine for game development? -- --Timothy.
Timothy, I don't think that the Ruby/SDL bindings can be used today inside MacRuby. The extensions mechanism still suffers from problems. While I'm not a Quartz expert I am pretty sure you can replace Ruby/ SDL by pure Mac OS X APIs, with as Quartz but also CoreImage, CoreAudio, CoreAnimation, OpenGL (which can be called from MacRuby), etc. Now it depends if you want to write cross-platform code. HTH, Laurent On Feb 14, 2009, at 9:35 PM, Timothy McDowell wrote:
Is it possible for me to use the Ruby/SDL bindings with MacRuby/ Cocoa? Also, can Quartz handle movement of sprites (gifs, pngs, jpgs?) and the like? Would Quartz be just fine for game development?
-- --Timothy. _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hi Timothy, I have converted Tim Burks RubyRocks - a simple Asteroids game to MacRuby - with NSViews and another version to use OpenGL. The OpenGL version has some ObjC code to get access to pixels. They are at johmacshea.org - which bounces to my idisk while I am on holidays - in the MacRuby/Game Related. In the Hillegas directory on the same site there is a MacRuby example that uses CoreAnimation - called Polynomials - I don't think its however appropriate to write action games in - or at least not initially as easy as other possibilities - though i would be happy to see someone prove me wrong - since in some ways it would be easier than OpenGL . Let me know if you have any issues getting them running. Cheers John On Feb 15, 2009, at 7:06 AM, Laurent Sansonetti wrote:
Timothy,
I don't think that the Ruby/SDL bindings can be used today inside MacRuby. The extensions mechanism still suffers from problems.
While I'm not a Quartz expert I am pretty sure you can replace Ruby/ SDL by pure Mac OS X APIs, with as Quartz but also CoreImage, CoreAudio, CoreAnimation, OpenGL (which can be called from MacRuby), etc. Now it depends if you want to write cross-platform code.
HTH, Laurent
On Feb 14, 2009, at 9:35 PM, Timothy McDowell wrote:
Is it possible for me to use the Ruby/SDL bindings with MacRuby/ Cocoa? Also, can Quartz handle movement of sprites (gifs, pngs, jpgs?) and the like? Would Quartz be just fine for game development?
-- --Timothy. _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Awesome, thanks. I'll take a look at those. Hrm, how do I download from you're iDisk? On Sun, Feb 15, 2009 at 12:37 AM, John Shea <johnmacshea@gmail.com> wrote:
Hi Timothy,
I have converted Tim Burks RubyRocks - a simple Asteroids game to MacRuby - with NSViews and another version to use OpenGL. The OpenGL version has some ObjC code to get access to pixels.
They are at johmacshea.org - which bounces to my idisk while I am on holidays - in the MacRuby/Game Related.
In the Hillegas directory on the same site there is a MacRuby example that uses CoreAnimation - called Polynomials - I don't think its however appropriate to write action games in - or at least not initially as easy as other possibilities - though i would be happy to see someone prove me wrong - since in some ways it would be easier than OpenGL .
Let me know if you have any issues getting them running. Cheers John
On Feb 15, 2009, at 7:06 AM, Laurent Sansonetti wrote:
Timothy,
I don't think that the Ruby/SDL bindings can be used today inside MacRuby. The extensions mechanism still suffers from problems.
While I'm not a Quartz expert I am pretty sure you can replace Ruby/SDL by pure Mac OS X APIs, with as Quartz but also CoreImage, CoreAudio, CoreAnimation, OpenGL (which can be called from MacRuby), etc. Now it depends if you want to write cross-platform code.
HTH, Laurent
On Feb 14, 2009, at 9:35 PM, Timothy McDowell wrote:
Is it possible for me to use the Ruby/SDL bindings with MacRuby/Cocoa?
Also, can Quartz handle movement of sprites (gifs, pngs, jpgs?) and the like? Would Quartz be just fine for game development?
-- --Timothy. _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-- --Brains.
Oh and btw, its 'johnmacshea.com' for anyone else looking back on this later ^_^ On Sun, Feb 15, 2009 at 9:54 AM, Timothy McDowell <tmcdowell@gmail.com>wrote:
Awesome, thanks. I'll take a look at those. Hrm, how do I download from you're iDisk?
On Sun, Feb 15, 2009 at 12:37 AM, John Shea <johnmacshea@gmail.com> wrote:
Hi Timothy,
I have converted Tim Burks RubyRocks - a simple Asteroids game to MacRuby - with NSViews and another version to use OpenGL. The OpenGL version has some ObjC code to get access to pixels.
They are at johmacshea.org - which bounces to my idisk while I am on holidays - in the MacRuby/Game Related.
In the Hillegas directory on the same site there is a MacRuby example that uses CoreAnimation - called Polynomials - I don't think its however appropriate to write action games in - or at least not initially as easy as other possibilities - though i would be happy to see someone prove me wrong - since in some ways it would be easier than OpenGL .
Let me know if you have any issues getting them running. Cheers John
On Feb 15, 2009, at 7:06 AM, Laurent Sansonetti wrote:
Timothy,
I don't think that the Ruby/SDL bindings can be used today inside MacRuby. The extensions mechanism still suffers from problems.
While I'm not a Quartz expert I am pretty sure you can replace Ruby/SDL by pure Mac OS X APIs, with as Quartz but also CoreImage, CoreAudio, CoreAnimation, OpenGL (which can be called from MacRuby), etc. Now it depends if you want to write cross-platform code.
HTH, Laurent
On Feb 14, 2009, at 9:35 PM, Timothy McDowell wrote:
Is it possible for me to use the Ruby/SDL bindings with MacRuby/Cocoa?
Also, can Quartz handle movement of sprites (gifs, pngs, jpgs?) and the like? Would Quartz be just fine for game development?
-- --Timothy. _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-- --Brains.
-- --Brains.
Sorry for yet another email, but mae that johnmacshea.org >_> On Sun, Feb 15, 2009 at 9:55 AM, Timothy McDowell <tmcdowell@gmail.com>wrote:
Oh and btw, its 'johnmacshea.com' for anyone else looking back on this later ^_^
On Sun, Feb 15, 2009 at 9:54 AM, Timothy McDowell <tmcdowell@gmail.com>wrote:
Awesome, thanks. I'll take a look at those. Hrm, how do I download from you're iDisk?
On Sun, Feb 15, 2009 at 12:37 AM, John Shea <johnmacshea@gmail.com>wrote:
Hi Timothy,
I have converted Tim Burks RubyRocks - a simple Asteroids game to MacRuby - with NSViews and another version to use OpenGL. The OpenGL version has some ObjC code to get access to pixels.
They are at johmacshea.org - which bounces to my idisk while I am on holidays - in the MacRuby/Game Related.
In the Hillegas directory on the same site there is a MacRuby example that uses CoreAnimation - called Polynomials - I don't think its however appropriate to write action games in - or at least not initially as easy as other possibilities - though i would be happy to see someone prove me wrong - since in some ways it would be easier than OpenGL .
Let me know if you have any issues getting them running. Cheers John
On Feb 15, 2009, at 7:06 AM, Laurent Sansonetti wrote:
Timothy,
I don't think that the Ruby/SDL bindings can be used today inside MacRuby. The extensions mechanism still suffers from problems.
While I'm not a Quartz expert I am pretty sure you can replace Ruby/SDL by pure Mac OS X APIs, with as Quartz but also CoreImage, CoreAudio, CoreAnimation, OpenGL (which can be called from MacRuby), etc. Now it depends if you want to write cross-platform code.
HTH, Laurent
On Feb 14, 2009, at 9:35 PM, Timothy McDowell wrote:
Is it possible for me to use the Ruby/SDL bindings with MacRuby/Cocoa?
Also, can Quartz handle movement of sprites (gifs, pngs, jpgs?) and the like? Would Quartz be just fine for game development?
-- --Timothy. _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-- --Brains.
-- --Brains.
-- --Brains.
On Feb 14, 2009, at 11:37 PM, John Shea wrote:
In the Hillegas directory on the same site there is a MacRuby example that uses CoreAnimation - called Polynomials - I don't think its however appropriate to write action games in - or at least not initially as easy as other possibilities - though i would be happy to see someone prove me wrong - since in some ways it would be easier than OpenGL .
Speaking of games, let me repeat my suggestion that http://developer.apple.com/samplecode/GeekGameBoard/index.html would be a fine "conversion target" and an excellent jumping-off point for some games that might indeed be well-suited to being written in MacRuby. - Jordan
Can't download the files or even view them at your site/iDisk there... On Sun, Feb 15, 2009 at 11:06 AM, Jordan K. Hubbard <jkh@apple.com> wrote:
On Feb 14, 2009, at 11:37 PM, John Shea wrote:
In the Hillegas directory on the same site there is a MacRuby example that uses CoreAnimation - called Polynomials - I don't think its however appropriate to write action games in - or at least not initially as easy as other possibilities - though i would be happy to see someone prove me wrong - since in some ways it would be easier than OpenGL .
Speaking of games, let me repeat my suggestion that http://developer.apple.com/samplecode/GeekGameBoard/index.html <http://developer.apple.com/samplecode/GeekGameBoard/index.html>would be a fine "conversion target" and an excellent jumping-off point for some games that might indeed be well-suited to being written in MacRuby.
- Jordan
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-- --Brains.
NVM >_> On Sun, Feb 15, 2009 at 7:29 PM, Timothy McDowell <tmcdowell@gmail.com>wrote:
Can't download the files or even view them at your site/iDisk there...
On Sun, Feb 15, 2009 at 11:06 AM, Jordan K. Hubbard <jkh@apple.com> wrote:
On Feb 14, 2009, at 11:37 PM, John Shea wrote:
In the Hillegas directory on the same site there is a MacRuby example that uses CoreAnimation - called Polynomials - I don't think its however appropriate to write action games in - or at least not initially as easy as other possibilities - though i would be happy to see someone prove me wrong - since in some ways it would be easier than OpenGL .
Speaking of games, let me repeat my suggestion that http://developer.apple.com/samplecode/GeekGameBoard/index.html <http://developer.apple.com/samplecode/GeekGameBoard/index.html>would be a fine "conversion target" and an excellent jumping-off point for some games that might indeed be well-suited to being written in MacRuby.
- Jordan
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-- --Brains.
-- --Brains.
Timothy: I assume NVM - means never mind ;-). Let me know otherwise (I just downloaded in fine on a friend's Mac).
Speaking of games, let me repeat ... Jordan: I will do this at some stage, because I too think its an interesting one (but not in the next couple of months) with the possibility of using the tech for a non action oriented game. .. - the animation in the Polynomials example (macruby) - using CoreAnimation - is beautifully smooth, with quite minimal setup.
On Mon, Feb 16, 2009 at 1:29 PM, Timothy McDowell <tmcdowell@gmail.com>wrote:
NVM >_>
On Sun, Feb 15, 2009 at 7:29 PM, Timothy McDowell <tmcdowell@gmail.com>wrote:
Can't download the files or even view them at your site/iDisk there...
On Sun, Feb 15, 2009 at 11:06 AM, Jordan K. Hubbard <jkh@apple.com>wrote:
On Feb 14, 2009, at 11:37 PM, John Shea wrote:
In the Hillegas directory on the same site there is a MacRuby example that uses CoreAnimation - called Polynomials - I don't think its however appropriate to write action games in - or at least not initially as easy as other possibilities - though i would be happy to see someone prove me wrong - since in some ways it would be easier than OpenGL .
Speaking of games, let me repeat my suggestion that http://developer.apple.com/samplecode/GeekGameBoard/index.html <http://developer.apple.com/samplecode/GeekGameBoard/index.html>would be a fine "conversion target" and an excellent jumping-off point for some games that might indeed be well-suited to being written in MacRuby.
- Jordan
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-- --Brains.
-- --Brains.
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (4)
-
John Shea
-
Jordan K. Hubbard
-
Laurent Sansonetti
-
Timothy McDowell