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

📄 ball.java

📁 初学者的佳音 初学者的佳音 初学者的佳音 初学者的佳音 初学者的佳音
💻 JAVA
字号:
package game;

import lib.*;
import javax.microedition.lcdui.*;

public class Ball extends Sprite{

  Resource resource=Resource.getResource();

  public Ball(int x,int y){
    setPosition(x,y);
    setWidth(8);
    setHeight(8);
  }
  public void paint(Graphics g,int offsetX,int offsetY){
    Toolkit.drawRegion(g,resource.imgProp,0,11,8,8,getX()+offsetX,getY()+offsetY);
  }
  public boolean isFlying(){
    return true;
  }
  public boolean isFixed(){
    return true;
  }
}

⌨️ 快捷键说明

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