• 大小: 1.37M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-02
  • 语言: 其他
  • 标签: 其他  

资源简介

FlyingShootGame2.zip

资源截图

代码片段和文件信息

package yxy.flyinggame.beans;

import java.awt.image.BufferedImage;

import yxy.flyinggame.ui.Gameframe;
import yxy.flyinggame.ui.GamePanel;

//背景
public class Background {
public BufferedImage Image; // 背景对应图片
public int x = 0; // 背景x坐标
public int y = -Gameframe.HEIGHT; // 背景y坐标
private int Step = 1; // 背景移动步数

public Background() {
switch (GamePanel.state) { // 根据不同难度等级设置背景
case GamePanel.EASY:
Image = GamePanel.background1Img;
break;
case GamePanel.MIDDLE:
Image = GamePanel.background2Img;
break;
case GamePanel.DIFFICULT:
Image = GamePanel.background3Img;
break;
}
}

public void move() { // 背景移动
y += Step;
if (y == 0) { // 循环移动
y = -Gameframe.HEIGHT;
}

}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-06-19 21:08  FlyingShootGame2\
     文件         397  2018-06-23 14:54  FlyingShootGame2\.classpath
     文件         391  2018-06-06 15:39  FlyingShootGame2\.project
     目录           0  2018-11-28 17:31  FlyingShootGame2\.settings\
     文件         670  2018-06-20 09:36  FlyingShootGame2\.settings\org.eclipse.jdt.core.prefs
     目录           0  2018-12-01 17:36  FlyingShootGame2\bin\
     目录           0  2018-12-01 17:36  FlyingShootGame2\bin\yxy\
     目录           0  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\
     目录           0  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\beans\
     文件         825  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\beans\Background.class
     文件         886  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\beans\Bullet.class
     文件        1101  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\beans\Diamond.class
     文件        1118  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\beans\Enemy1.class
     文件        1118  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\beans\Enemy2.class
     文件        1368  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\beans\Enemy3.class
     文件         903  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\beans\EnemyBullet.class
     文件         155  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\beans\EnemyInterface.class
     文件         951  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\beans\FlyingobjectAbstract.class
     文件        1109  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\beans\Heart.class
     文件        2964  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\beans\Hero.class
     目录           0  2018-12-01 17:36  FlyingShootGame2\bin\yxy\flyinggame\images\
     文件      145284  2018-06-17 22:06  FlyingShootGame2\bin\yxy\flyinggame\images\background1.jpg
     文件      148973  2018-06-17 22:06  FlyingShootGame2\bin\yxy\flyinggame\images\background2.jpg
     文件      125903  2018-06-17 22:07  FlyingShootGame2\bin\yxy\flyinggame\images\background3.jpg
     文件        3826  2015-08-12 18:08  FlyingShootGame2\bin\yxy\flyinggame\images\bullet.png
     文件        3859  2018-06-20 09:09  FlyingShootGame2\bin\yxy\flyinggame\images\bullet1.png
     文件        1543  2018-06-17 21:54  FlyingShootGame2\bin\yxy\flyinggame\images\diamond.png
     文件        7445  2015-08-11 10:07  FlyingShootGame2\bin\yxy\flyinggame\images\enemy1.png
     文件        6371  2018-06-18 10:35  FlyingShootGame2\bin\yxy\flyinggame\images\enemy1_died.png
     文件       13887  2015-08-11 10:17  FlyingShootGame2\bin\yxy\flyinggame\images\enemy2.png
     文件        9632  2018-06-18 10:33  FlyingShootGame2\bin\yxy\flyinggame\images\enemy2_died.png
............此处省略61个文件信息

评论

共有 条评论