animate.java
来自「月球人的遊戲喔 AMD S3000+ 64Bit $2770 華碩 K8」· Java 代码 · 共 41 行
JAVA
41 行
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 + =
减小字号Ctrl + -
显示快捷键?