私はモノアンドロイドでゲームアプリケーションに取り組んでいます。背景画像を上から下に縦スクロールするサンプルコードが欲しいです。私はコードを持っていますが、正しく動作していません.誰かが私を助けてください.
mBGFarMoveY = mBGFarMoveY + 3;
int newFarY = mBackgroundImageFar.Height + (+ mBGFarMoveY);
if (newFarY <= 0)
{
mBGFarMoveY = 0;
canvas.DrawBitmap (mBackgroundImageFar,0,mBGFarMoveY,null);
}
else
{
canvas.DrawBitmap (mBackgroundImageFar,0,mBGFarMoveY,null);
canvas.DrawBitmap (mBackgroundImageFar,0, newFarY, null);
}
ありがとうございます、チャクラダール。