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 17:39:44

MixJuice GET URL : kidspod.club/mj/354

宇宙の旅

画面をタップ(クリック)している間、位置が変わるぞ。
飛んでくる星をよけながらどんどん進んでいこう!
進めば進むほど点数が上がっていくぞ。
IchigoLatteで遊ぶときは、ボタンを押そう。
このプログラムは初心者向けです。

"A Space Odyssey"
The position will change while tapping (clicking) the screen.
Let's move steadily as we lose the flying stars!
The score will go up as you go forward.
When playing with IchigoLatte, press the button.
This program is for beginners.

SOURCE CODE

var b=0;
var s=0;
var x=4,y=10;
cls();

while(1){
  if((rnd(100)<=20)){
    var h_y=y-2+rnd(5);
    lc(30,h_y);log("*");
  }

  b=btn();

  lc(x,y-b);log(chr(251));

  scroll(3);

  var c=scr(x,y-b);
  if ((c!=0)*(c!=32)) {
    lc(0,0);log(s);
    exit(0);
  }

  s=s+1;

  sleep(50);
}

COMMENT