Re: New HP39gII programs (snake, minesweeper, ...) Message #7 Posted by Gilles Carpentier on 23 Feb 2013, 8:57 a.m., in response to message #1 by Mic
:D
I wrote a new version of Snake with hi-score management.
Mic, could you publish this version on your web site ?
My record is 2465 in "very easy" mode...
One interesting thing in this program is the way I use to get the same speed with the real calc and with the emulator.
The idea is to use the Ticks command :
n:=Ticks;
WHILE (Ticks-n)<(Vitesse-Niveau) DO
// Gauche
IF ISKEYDOWN(14)THEN dX:=-5; dY:=0; END;
// Droite
IF ISKEYDOWN(10)THEN dX:=5; dY:=0; END;
// Haut
IF ISKEYDOWN(9) THEN dX:=0; dY:=-5; END;
// Bas
IF ISKEYDOWN(15)THEN dX:=0; dY:=5; END;
END;
Unfortunatly I was unable to use the DIMGROB command which seems buggy. It's pity beacause all my "sprites" are ready ;)
Edited: 23 Feb 2013, 9:16 a.m.
|