• 大小: 47.37M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-24
  • 语言: Java
  • 标签: 飞机大战  飞机  

资源简介

对传统飞机大战的改良,加入了加血,加命,加飞弹三种补给;小怪机有四种;有背景音乐

资源截图

代码片段和文件信息

package ShootGame;

import java.util.Random;

/** 敌机大BOSS,击落一架加10分*/
public class Airplane extends EnemyAirplane{
    private int speed=2;//走步的步数
    public Airplane(){
        // 3滴血
        health=3;
        image=ShootGame.airplane;
        width=image.getWidth();
        height=image.getHeight();
        Random rand=new Random();
        x=rand.nextInt(ShootGame.WIDTH-this.width);
        y=-height;//y坐标
    }
    public int getScore() {
        return 10;
    }
    public void step() {
        y+=speed;
    }
    public boolean outBounds() {

        return this.y>ShootGame.HEIGHT;
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-06-02 22:02  ShootGame\
     目录           0  2020-06-02 22:54  ShootGame\.idea\
     文件         263  2020-06-02 19:47  ShootGame\.idea\misc.xml
     文件         265  2020-06-02 19:47  ShootGame\.idea\modules.xml
     文件        8915  2020-06-02 21:10  ShootGame\.idea\uiDesigner.xml
     文件        4238  2020-06-02 22:54  ShootGame\.idea\workspace.xml
     目录           0  2020-06-02 19:33  ShootGame\out\
     目录           0  2020-06-02 19:33  ShootGame\out\production\
     目录           0  2020-06-02 21:10  ShootGame\out\production\ShootGame\
     目录           0  2020-06-02 21:10  ShootGame\out\production\ShootGame\meta-INF\
     文件          16  2020-06-02 21:10  ShootGame\out\production\ShootGame\meta-INF\ShootGame.kotlin_module
     目录           0  2020-06-02 22:50  ShootGame\out\production\ShootGame\ShootGame\
     文件        1038  2020-06-02 21:54  ShootGame\out\production\ShootGame\ShootGame\Airplane.class
     文件       27176  2020-06-02 19:35  ShootGame\out\production\ShootGame\ShootGame\airplane.png
     文件        1041  2020-06-02 21:52  ShootGame\out\production\ShootGame\ShootGame\Airplane2.class
     文件        3609  2016-04-24 04:16  ShootGame\out\production\ShootGame\ShootGame\airplane2.png
     文件        1041  2020-06-02 21:54  ShootGame\out\production\ShootGame\ShootGame\Airplane3.class
     文件        3548  2016-04-24 04:16  ShootGame\out\production\ShootGame\ShootGame\airplane3.png
     文件        1041  2020-06-02 21:39  ShootGame\out\production\ShootGame\ShootGame\Airplane4.class
     文件        2279  2016-04-24 04:16  ShootGame\out\production\ShootGame\ShootGame\airplane4.png
     文件       12988  2020-06-02 20:12  ShootGame\out\production\ShootGame\ShootGame\ammoPack.png
     文件        1079  2020-06-02 21:00  ShootGame\out\production\ShootGame\ShootGame\Award$AwardType.class
     文件         283  2020-06-02 21:00  ShootGame\out\production\ShootGame\ShootGame\Award.class
     文件       26709  2020-06-02 15:54  ShootGame\out\production\ShootGame\ShootGame\background.png
     文件         696  2020-06-02 21:10  ShootGame\out\production\ShootGame\ShootGame\Bee$1.class
     文件        1960  2020-06-02 21:10  ShootGame\out\production\ShootGame\ShootGame\Bee.class
     文件        6405  2019-03-18 15:53  ShootGame\out\production\ShootGame\ShootGame\bee.png
     文件    27155368  2020-06-02 22:49  ShootGame\out\production\ShootGame\ShootGame\BGM.wav
     文件        1134  2020-06-02 22:15  ShootGame\out\production\ShootGame\ShootGame\BGMusic.class
     文件         878  2020-06-02 21:39  ShootGame\out\production\ShootGame\ShootGame\Bullet.class
     文件         408  2020-06-02 15:54  ShootGame\out\production\ShootGame\ShootGame\bullet.png
............此处省略52个文件信息

评论

共有 条评论