📄 sprite.java
字号:
import javax.microedition.lcdui.Image;
public class Sprite
{
int life,level,basicPower,x,y;
int p;
public Sprite(int level)
{
this.level=level;
this.life=15*level*level+10;
this.basicPower=3*level*level+1;
}
public Sprite(int i,int a)
{
this.life=i;
this.basicPower=a;
this.level=11;
}
public Sprite(int a,int b,int c)
{
this.x=a;
this.y=b;
this.life=c;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -