30Fermer32
Yoshi NoirLe 30/05/2004 à 20:46

Local a,b,c
0 -> a
0-> b 0 -> c

Mets le Local a,b,c au tout début si tu veux pas avoir des déchets.
Lbl debut
While not (a=337 and a=338 and a=340 and a=344)
getkey() -> a
Endwhile
Output b,c," "
If a = 337 then
b-5 -> b
Endif
If a = 338 then
c-5 -> c
Endif
If a = 340 then
b+5 -> b
Endif
If a = 344 then
c+5 -> c
Endif
Output b,c,"@" goto debut


Vu ! Un caractère de taille moyenne fait 6*8 pixels. Pour corriger ton truc, je ferais :
loop
getkey()->key
if not (key=0)
output b,c," "
If a = 337
b-5 -> b
If a = 338
c-5 -> c
If a = 340
b+5 -> b
If a = 344
c+5 -> c
Output b,c,"@" endloop