⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sprites.java~3~

📁 基于数字机顶盒J2me平台开发的互动游戏《金鼠财神》游戏
💻 JAVA~3~
字号:
package WealthGod104;

import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;

public class Sprites extends Sprite implements Runnable {
  protected LayerManager layerManager;
  protected Sprite sp=null;
  protected int m_rect_top,m_rect_bottom,m_rect_left,m_rect_right;
  protected int x,y,xc,yc,xg,yg;
  protected int ENUM_STYPE;//1为once,2loop,3BUMPSTOP
  protected int SPRITE_TYPE = 0;//自己定义,默认为0
  protected int USERTYPE;//VIR=0;SMS=1
  public Sprites(Image image,int m_rect_top,int m_rect_bottom,int m_rect_left,int m_rect_right,
               int x,int y,int xc,int yc,int width,int height) {
   super(image);
   this.m_rect_top = m_rect_top;
   this.m_rect_bottom = m_rect_bottom;
   this.m_rect_left = m_rect_left;
   this.m_rect_right = m_rect_right;
   this.x = x;this.y = y;this.xc=xc;this.yc=yc;this.xg=xg;this.yg=yg;

   sp = new Sprite(image,width,height);
   sp.setPosition(x,y);
  }

  public void run() {
    while(true){
      ChangPos();
    }
  }

  public int  ChangPos(){

  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -