标题: Android 2D特效播放 [打印本页] 作者: 老衲玩IT 时间: 2013-8-25 15:17 标题: Android 2D特效播放 /**
* 特效类,切割逐帧图,通过逻辑函数控制播放帧
* @author 老衲玩IT
*
*/
public class Effection{
public boolean idDead;
int totalFrame;
int rows,cols;
int currentFrame;
int x,y;
Bitmap bitmap;
int w,h;
int type;
int speed=5;
float r,rad,fixX,fixY;
public Effection(Bitmap bitmap, int x, int y) {
// TODO Auto-generated constructor stub
this.bitmap=bitmap;
this.x=x;
this.y=y;
}
public Effection(Bitmap bitmap, int x, int y,int totalFrame) {
// TODO Auto-generated constructor stub
this.bitmap=bitmap;
this.x=x;
this.y=y;
this.totalFrame=totalFrame;
}
public Effection(Bitmap bitmap, int x, int y,int rows,int cols,int totalFrame) {