On Tue, 17 Oct 2006 19:00:03 +0200 (CEST) Antoine Jacoutot <[EMAIL PROTECTED]> wrote:
> Allright... I needed a "do something useless"-break and came up with this. > > PKG/DESCR > Ri-li is a arcade game where you drive a toy wood engine in many levels > and you must collect all the coaches for win. > - Colorful animated wood engine > - 40 levels > - 3 beautiful musics and many sound effects > - 8 languages (Arabic, Chinese, English, French, German, Japanese, > Russian, Spanish) Nice game. :) Builds and runs on i386, but I had few minor problems with the highscore list: 1) Scandinavian letters like 'ä' or 'ö' are shown as 'd' and 'v'. - This is probably a feature, because code does key=keysym.unicode&0x7F; 2) Sometimes highscore list window stops accepting other keyboard input than enter. One should be able to trigger this by selecting 'Esperando' as a language, then playing a little, changing the language to 'Svenska' and then getting on the highscore list and pressing 'shift'. It seems that something corrupts TableTexte[] table when one changes the language. The highscore list relies to CharExiste function(sprite.cc) when it validates keys: bool CharExiste(char C) { /* printf my addition -tkoskine */ printf("TableTexte[(int)(%d)] = %d\n", (int)C, TableTexte[(int)(C)]); if(C==' ') return true; if(TableTexte[(int)(C)]!=-1) return true; return false; } Before the language change printf prints following: TableTexte[(int)(0)] = -1 After the language change the output is: TableTexte[(int)(0)] = 478 -- Tero Koskinen - http://iki.fi/tero.koskinen/