- 755 名前:デフォルトの名無しさん mailto:sage [2015/09/25(金) 07:05:37.28 ID:od9Azemj.net]
- //始めのブロックを表示させる
for(int x=location.x;x<pieceWidth+location.x;x++) { for (int y =yy ; y < pieceHeight + yy; y++) { if (piece[x-location.x][y-yy] == 1) { x:6 y:3 location.y:2 piece:int[4][]@4000 Resources r = getResources(); Paint paint = new Paint(); Bitmap blue = BitmapFactory.decodeResource(r, R.drawable.blue); デバッグしてみたら、ループするたびに現在のブロックを入れているint[][]pieceがどんどん増えてると思われました。 最初@3998だったのが@3999,@4000と これが消されず残っているから次々と新しいブロックが描画されるのでしょうか?
|

|