It’s Tetris. What else is there to say? Forged in the winter ice of Russia and Providence.
To run it, you’ll need to change the $base_path in the first line to point to the ‘tetris’ directory. So that it can find the background image.
The particulars: Arrow keys to move, space to drop the piece, ‘P’ to pause, and ‘N’ to start a new game.
Speak now or forever hold your peace:
Yay my first shy :) Works when I test it on Win2k, whereas the forms.shy sample dunna. (?) So does it work for everyone else too?
The method I used (with curious) was the first one mentioned here.
If this continues not not working I think I’ll try making a script with argv’s for shymaking and putsing it here.
Thx!
Unfortunately, when I try that .shy on Leopard, I get a:
.\/board.png
Which stinks, because that’s the problem we were trying to avoid in the first place.
I’ll bet there is a high probability that is because I used a windows specific base path to get it working for me first, then forgot what I had done by the time I made the shy.
This time I’ve removed the base_path code entirely and used relative addressing, making the shy again. Does it work better now?
I have got a report that my shymaker works on OSX though with odd gui layout in the tool itself. So if this shy doesn’t the work (and/or if/when you make anudder version :) Let me know if shymakything does the job?
Thxes
Hey, that’s fantastic. Tetris all bundled up and ready to go. And in 132k, and in a Shy. I’m convinced. It works on Leopard.

If someone wants to make a .shy out of this, with the background relative to the tetris.rb, and the upload it here, that would be great. My Shoes (Curious) won’t let me do it.