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

2019/04/30 18:08:13

MixJuice GET URL : kidspod.club/mj/808

綱引きゲーム

スペースキーを連打して「*」をたくさん表示させてみよう!

  • No registered tag exist.

SOURCE CODE

cls();
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(30);
}

COMMENT