The Shoebox. A place for lil' apps to live in peace and harmony.

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:

omygawshkenas!
February 17, 2008

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.

Jesse
February 19, 2008

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!

omygawshkenas!
February 19, 2008

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.

Jesse
February 21, 2008

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

omygawshkenas!
February 21, 2008

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.

Mike Cantelon
August 23, 2008

Works in Linux. Nice use of transparency!


How do I use this?