background.java

来自「a modefied space invader game」· Java 代码 · 共 32 行

JAVA
32
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. *//** * <p>Title: DemoVader</p> * <p>Description: .</p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: Symbian Ltd</p> * @author Alan Newman - alan@sensibledevelopment.net * @version 1.0 */import javax.microedition.lcdui.game.*;import javax.microedition.lcdui.*;public class BackGround extends TiledLayer  {  public BackGround(int columns, int rows, Image image, int tileWidth, int tileHeight)  {    super(columns, rows, image, tileWidth, tileHeight);    int tiles=columns*rows;    for (int i = 0; i < tiles; i++)        {      int c = i % columns;      int r = (i - c) / columns;      this.setCell(c, r, 1);    }  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?