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

📄 floorstick.java

📁 一个经典的手机游戏原代码
💻 JAVA
字号:
import javax.microedition.lcdui.*;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class floorStick extends floorSprite {
  public floorStick(Image img , int frameWidth, int frameHeight,
                   int scnWidth, int scnHeight) {
    super(img, frameWidth, frameHeight, scnWidth, scnHeight);
  }

  void doOn(playerSprite tempPlayer) {
    /**@todo Implement this floor abstract method*/
      tempPlayer.move(0, FLOOR_MOVE*-1);
      if (isDoLive == false) {
        tempPlayer.decreaseLive();
        tempPlayer.iStick = 1;
        isDoLive = true;
      }
  }

  void autoAction() {
  }

}

⌨️ 快捷键说明

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