package game;
import java.awt.image.BufferedImage;
import javax.imageio.ImageIO;
/**
*地面
*/
public class Ground {
//图片
BufferedImage image;
//位置
int x,y;
//宽高
int width,height;
//初始化地面
public Ground() throws Exception{
image=ImageIO.read(getClass().getResource("/resources/ground.png"));
width=image.getWidth();
height=image.getHeight();
x=0;
y=500;
}
//向左移动一步
public void step() {
x--;
if(x==-109) {
x=0;
}
}
}
最近下载更多
微信网友_7556339099734016 LV3
6月16日
微信网友_6191697646571520 LV6
2022年10月27日
迷迭香 LV10
2022年9月22日
zxy135201 LV5
2022年9月16日
agjbvfhjbg LV6
2022年9月9日
jackzhang123 LV2
2022年9月3日
cuijunjie LV3
2022年7月2日
java代写 LV7
2022年6月4日
Yj1009 LV2
2022年6月2日
牛牛最棒哈哈 LV3
2022年5月31日

最近浏览