📄 player.java
字号:
import javax.microedition.lcdui.*;public class Player extends Sprite{ protected int areas[][] = {{2, 1, 6, 3}, {3, 4, 4, 5}, {0, 9, 10, 14}}; protected int energy; public Player(Image image, int width, int height, int numFrames, int energy) throws Exception { super(image, width, height, numFrames); this.energy = energy; } public int getEnergy() { return energy; } public void setEnergy(int energy) { this.energy = energy; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -