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/26 13:57:04

MixJuice GET URL : kidspod.club/mj/365

064

  • No registered tag exist.

SOURCE CODE

var gun_y;
var key;

gun_y = 12;

while(1){
 key = inkey();
 if((key == 30) * (gun_y > 1)){
  gun_y = gun_y - 1;
 }
 if((key == 31) * (gun_y < 22)){
  gun_y = gun_y + 1;
 }

 cls();
 lc(0, gun_y);
 log("}");
 
 sleep(30);
}

COMMENT