Enjoy programming more!
Kidspod is a post site which supports young programmers.
First step to join us.
Register as a member
For members

2017/10/31 10:20:40

MixJuice GET URL : kidspod.club/mj/388

078

  • No registered tag exist.

SOURCE CODE

var i;
var cx;

i = 2;
cx = 12;

while(1){
 key = inkey();
 lc(cx, 20);
 log(" ");
 if((key == 28) * (cx > 11)){
  cx = cx - 1;
 }
 if((key == 29) * (cx < 12)){
  cx = cx + 1;
 }

 if(i < 21){
  cls();
  while(i < 21){
   lc(10, i);
   log("|  |\n");
   i = i + 1;
  }
 }
 
 lc(cx, 20);
 log("A");

 sleep(20);
}

COMMENT