?? property.java
字號:
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;
public class Property extends Sprite {
int x; //雜物的X軸坐標
int y; //雜物的Y軸坐標
//把圖片只有一個幀的角色創建為property對象
public Property(Image image,int tempx, int tempy) {
super(image);
x=tempx;
y=tempy;
this.setPosition(x,y);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -