資源簡介
java打飛機項目,用純java代碼編寫,包含項目所需的全部圖片資源。注釋齊全,簡單易學,是學習java基礎后的一個全面系統的練習性項目。不可錯過。
代碼片段和文件信息
package?打飛機;
public?class?Airplane?extends?Flyingobject?implements?Enemy{
????protected?int?speed=2;
????public?Airplane(){
???? image=shootgame.airplane;
???? width=image.getWidth();
???? height=image.getHeight();
???? y=height;
???? x=(int)(Math.random()*(shootgame.width-width));
????}
????
????public?int?getscore()?{
???? return?10;
????}
????
????public?void?step()?{
???? y+=speed;
????}
????
????public?boolean?outofBounds()?{
???? return?y>shootgame.height;
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-07-09?15:00??02_shoot1\
?????文件?????????301??2018-02-26?08:55??02_shoot1\.classpath
?????文件?????????385??2018-06-23?19:04??02_shoot1\.project
?????目錄???????????0??2018-07-09?15:00??02_shoot1\.settings\
?????文件?????????598??2018-02-26?08:55??02_shoot1\.settings\org.eclipse.jdt.core.prefs
?????目錄???????????0??2018-07-09?15:00??02_shoot1\bin\
?????目錄???????????0??2018-07-09?15:00??02_shoot1\bin\打飛機\
?????文件?????????982??2018-06-23?19:33??02_shoot1\bin\打飛機\Airplane.class
?????文件????????3575??2018-02-26?09:28??02_shoot1\bin\打飛機\airplane.png
?????文件?????????207??2018-06-23?19:33??02_shoot1\bin\打飛機\Award.class
?????文件???????28052??2018-02-26?12:04??02_shoot1\bin\打飛機\background.png
?????文件????????1128??2018-06-23?19:33??02_shoot1\bin\打飛機\Bee.class
?????文件????????6405??2018-02-26?09:28??02_shoot1\bin\打飛機\bee.png
?????文件?????????840??2018-06-23?19:33??02_shoot1\bin\打飛機\Bullet.class
?????文件????????3087??2018-02-26?12:04??02_shoot1\bin\打飛機\bullet.png
?????文件?????????126??2018-06-23?19:33??02_shoot1\bin\打飛機\Enemy.class
?????文件?????????752??2018-06-23?19:33??02_shoot1\bin\打飛機\Flyingob
?????文件???????22447??2018-02-26?09:28??02_shoot1\bin\打飛機\gameover.png
?????文件????????2208??2018-06-23?19:33??02_shoot1\bin\打飛機\hero.class
?????文件???????12280??2018-02-26?09:28??02_shoot1\bin\打飛機\hero0.png
?????文件???????16243??2018-02-26?09:28??02_shoot1\bin\打飛機\hero1.png
?????文件???????17082??2018-02-26?09:28??02_shoot1\bin\打飛機\pause.png
?????文件????????1601??2018-06-23?19:33??02_shoot1\bin\打飛機\shootgame$1.class
?????文件?????????862??2018-06-23?19:33??02_shoot1\bin\打飛機\shootgame$2.class
?????文件????????8048??2018-06-23?19:33??02_shoot1\bin\打飛機\shootgame.class
?????文件???????26274??2018-02-26?09:28??02_shoot1\bin\打飛機\start.png
?????目錄???????????0??2018-07-09?15:00??02_shoot1\src\
?????目錄???????????0??2018-07-09?15:00??02_shoot1\src\打飛機\
?????文件?????????503??2018-03-02?19:51??02_shoot1\src\打飛機\Airplane.java
?????文件????????3575??2018-02-26?09:28??02_shoot1\src\打飛機\airplane.png
?????文件??????????95??2018-02-27?19:12??02_shoot1\src\打飛機\Award.java
............此處省略14個文件信息
- 上一篇:Java加密與解密的藝術配書源代碼
- 下一篇:android縱向的tab
評論
共有 條評論