J2ME俄罗斯方块代码
绝对真实可以运行的 和你玩过的差不多 public void paintMap(Graphics g) { // 循环绘制地图 for (int row = 0; row < map.length; row++) { for (int col = 0; col < map[row].length; col++) { // 是否绘制 if (map[row][col] == 1) { paintCell(g, col * CELLWIDTH, row * CELLWIDTH); } } } }
下载地址
用户评论