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

2017/09/21 19:50:34

MixJuice GET URL : kidspod.club/mj/355

ミサイルゲームv1

  • No registered tag exist.

SOURCE CODE

var my;
var key;
my = 23;
while(1){a
  cls();
  key = inkey();
  if (key == 32){
    my = my - 1;
  }
  else{
    my = my + 1;
  }
  if(my > 23){
    my = 23;
  }
  if (my < 0){
    my = 0;
  }
  lc(15, my);
  log("|");
  sleep(100);
}

COMMENT