📄 animate.java
字号:
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.* ;
public class Animate extends Actor {
public TiledLayer bg;
public Goods jump,shoot;
public Animate(Image img,int w, int h,int x,int y)
{
super(img,w,h,x,y);
}
public void setBg(TiledLayer bg)
{
this.bg=bg;
}
public void setJump(Goods j)
{
this.jump=j;
}
public void setShoot(Goods s){
this.shoot=s;
}
public boolean collGood(Goods g)
{
if(collidesWith(g,false))
return true;
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -