From: Peter Thoman Date: 2004-07-16T02:53:18+09:00 Subject: Re: Writing games in Ruby? Tom Copeland wrote: >I've wondered about that too. It'd be nifty to have a little collection >of old-school arcade games in Ruby - Tetris, Breakout, Space Invaders, >etc. > I did the first 2 of that list (with RUDL, which I think is superior to PyGame btw.) Screenshots: http://rudl.sourceforge.net/screenshots/ The Tetris game is included in the RUDL distribution if I remember correctly. It's about 500 lines, but that includes the interface, music, and all the block types specified as arrays. Oh, and support for up to 8 (n, basically, but you'd need a huge keyboard...) players and saving and loading of all the options. Note that the code is from a long time ago when I just started using Ruby, so it's not really a great example to learn from. The breakout clone uses OpenGL and has pretty nice graphics and even positional stereo sound effects, but has been half-finished for 1 and a half years now. >I just haven't done enough GUI programming in Ruby to know how >hard it would be, though... > > It can't be that hard if I could do it 2 years ago ;) Seriously, RUDL is IMHO very usable and has a well-designed and extremely Ruby-like interface, the only thing missing are the games! (and more work on the Linux side it seems, but I don't know much about that) HTH, - Peter