(int m, int n)
| 187 | } |
| 188 | /*方块掉落一层*/ |
| 189 | public void fall(int m, int n) { |
| 190 | if (m > 0)// 方块下落一层时 |
| 191 | clear(m - 1, n);// 清除上一层有颜色的方块 |
| 192 | draw(m, n);// 重新绘制方块图像 |
| 193 | } |
| 194 | /*清除方块掉落之前有颜色的地方*/ |
| 195 | public void clear(int m, int n) { |
| 196 | int temp = 0x8000;//表示1000 0000 0000 0000 |