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/12 19:15:04

MixJuice GET URL : kidspod.club/mj/289

026

  • No registered tag exist.

SOURCE CODE

var x = 15;
var p = 50;
lc(0, 11);
log("***************");
while(1){
  if(p < 0){
    x = x - 1;
    lc(x, 11);
    log("  ");
    p=10;
  }
  if(inkey()==32){
    p = p + 5;
  }
  if(p>20){
    lc(x, 11);
    log("**");
    x = x + 1;
    p = 10;
  }
  p = p - 1;
  sleep(20);
}

COMMENT