The Snake Game


Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on


This is an adapted, improved version of the popular javacave game (see:, written in QtRuby.

Instructions: download, chmod +x snake(gl).rb, run it.

Requirements are Qt3, Ruby, and the QtRuby bindings. Don't know which specific versions (I use the latest ones and those work); if someone has an older version it doesn't work with, notify me and I'll either fix it, or put a note here saying it won't work.

The only difference between the 'normal' and OpenGL version is the OpenGL version doesn't flicker (the code is 99% the same, it just uses a QGLWidget instead of a QWidget), and presumably requires you to have working OpenGL. Later on I might try and replace some of the intermediate pixmaps I draw to with QGLWidgets as well to see if it improves performance much.

special request: if someone plays around with the speed/accel values and manages to find the ones that most closely approximate the original game, please share them with me so that I can make them the defaults :).

thanks to: Trolltech for Qt, matz for Ruby, Richard Dale for the QtRuby bindings, various people on #kde-devel for variously helping me with various stuff, whoever originally came up with javacave for that
Last changelog:

15 years ago

1.0: initial release

Be the first to comment

15 years ago

1.0: initial release

Be the first to comment
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
0 Affiliates
updated May 04 2005
added May 04 2005
downloads 24h
mediaviews 24h 0
pageviews 24h 0
System Tags app software