var x; var y; var key; var v; x = 1; y = 4; v = 0; while(1){ key = inkey(); if((key == 28) * (v == 0)){ if(x > 0){ x = x - 1; } } if((key == 29) * (v == 0)){ if(x < 30){ x = x + 1; } } if((key == 30) * (v == 0)){ y = y - 4; } if((key == 31) * (v == 0)){ v = 1; } if(v > 0){ y = y + 1; v = v + 1; if(v > 4){ v = 0; } } cls(); lc(0, 5); log("================================"); lc(0, 9); log("================================"); lc(0, 13); log("================================"); lc(0, 17); log("================================"); lc(0, 21); log("================================"); lc(12, 4); log("$"); lc(18, 8); log("$"); lc(4, 12); log("$"); lc(21, 16); log("$"); lc(0, 20); log("$"); lc(x, y); log("K"); sleep(500); }