コード例 #1
0
 public void randomize() {
   targetY = (int) (16 + FlxG.random() * (208 - height));
   if (targetY < y) velocity.y = -SPEED;
   else velocity.y = SPEED;
 }