資源簡介
對傳統飛機大戰的改良,加入了加血,加命,加飛彈三種補給;小怪機有四種;有背景音樂
代碼片段和文件信息
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.xm
?????文件?????????265??2020-06-02?19:47??ShootGame\.idea\modules.xm
?????文件????????8915??2020-06-02?21:10??ShootGame\.idea\uiDesigner.xm
?????文件????????4238??2020-06-02?22:54??ShootGame\.idea\workspace.xm
?????目錄???????????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\me
?????文件??????????16??2020-06-02?21:10??ShootGame\out\production\ShootGame\me
?????目錄???????????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個文件信息
- 上一篇:天堂270源碼
- 下一篇:兩套 五子棋小游戲源碼(控制臺+JavaSWing)
評論
共有 條評論