Re: Correct me if I am wrong Message #11 Posted by Gilles Carpentier on 14 Aug 2013, 3:43 a.m., in response to message #10 by Juergen Keller
@Juergen
I agree with you. Others points :
1/The language is very easy to use, to understand, good debugger, lot of commands
2/ The programs are small (Bytes)
3/ For a pocket, I find the language a little verbose even with the templates. So it's not fast to write a program directly on the calc. Perhaps a matter of habit with templates
4/ It's very fast and specially the graph commands
Here an example (need a real hardware)
EXPORT Defender()
BEGIN
LOCAL xv:=10,yv:=20;
DIMGROB_P(G1,640, 48);
DIMGROB_P(G2,320,240);
Y:=32;
FOR X:=0 TO 640 DO
Y:=MIN(MAX(Y-1+IP(RANDOM(3)),0),47);
LINE_P(G1,X,48,X,48-Y);
END;
RECT();
FOR X:=0 TO (640-64) DO
xv:=MIN(MAX(xv+5*(ISKEYDOWN(8)-ISKEYDOWN(7)),0),309);
yv:=MAX(yv+5*(ISKEYDOWN(12)-ISKEYDOWN(2)),0);
BLIT_P(G2,0,0,320,240,G1,X,0,X+64,48);
IF GETPIX_P(G2,xv+10,yv+5)==0 THEN BREAK; END;
RECT_P(G2,xv,yv,xv+10,yv+5,0,#20B2AAh);
BLIT_P(G0,G2);
END;
FOR N:=1 TO 100 DO INVERT_P; END;
END;
Video :
http://www.dailymotion.com/video/x132v9e_defender_tech
|