誰かが助けてくれるなら、Android ゲームのループを実装したい
画像ビューにランダムな画像をロードしました。
今、私は画像を画面の左下から画面の中心まで45度の角度で加速したいと考えています.ピークに達した後、右下隅に45度の角度を作ります..
私のコードは
int[] imageView = {
R.id.imageV
};
int[] images ={
R.drawable.image1,
R.drawable.image2,
R.drawable.image3,
R.drawable.image4
};
Random rand=new Random();
for(int v : imageView) {
ImageView iv = (ImageView)findViewById(v);
iv.setImageResource(images[rand.nextInt(images.length)]);
}