• 大小: 1.03MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-18
  • 语言: Java
  • 标签:

资源简介

分享一款经典的游戏TankWar 坦克大战 Android版,比较完整的游戏源码,Bin目录下有游戏所需要的图像、音效等资源,编译android源码后会在Bin目录下生成apk文件,将此文件安装到android手机中即可玩游戏。   这是一个以开发研究为主的源代码,并不是一个十全十美的成品游戏,意在通过坦克大战的编写,让Android开发者学习到诸多游戏开发技巧,积累游戏开始经验等,可能代码在编译过程中会有少许错误,请见谅。

资源截图

代码片段和文件信息

package cn.hnist.Joshua;

//download by http://www.srcfans.com
import java.awt.*;

abstract class Bomb
{
int x y;
int step = 0;
static final Toolkit TLK = Toolkit.getDefaultToolkit();

public Bomb(int x int y)
{
this.x = x;
this.y = y;
}

abstract void draw(Graphics g);
}

class TankBomb extends Bomb
{
Tank tk;
public static final Image[] TBIMGS =
{ TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/1.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/2.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/3.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/4.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/5.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/6.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/7.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/8.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/9.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/10.png“))
TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/11.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/12.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/13.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/14.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/15.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/16.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/17.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/18.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/19.png“))
TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/20.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/21.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/22.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/23.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/24.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/25.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/26.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/27.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/28.png“))
TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/29.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/30.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/31.png“)) TLK.getImage(Bomb.class.getClassLoader().getResource(“Image/TankBomb/32.png“)) TLK.getImage(Bomb.class.getClassLoader().getR

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        301  2012-06-02 10:20  srcfans.com\TankWar\.classpath

     文件        383  2012-06-02 10:20  srcfans.com\TankWar\.project

     文件        598  2012-06-02 10:20  srcfans.com\TankWar\.settings\org.eclipse.jdt.core.prefs

     文件        629  2012-06-02 10:20  srcfans.com\TankWar\bin\cn\hnist\Joshua\Bomb.class

     文件        682  2012-06-02 10:21  srcfans.com\TankWar\bin\cn\hnist\Joshua\BossRobotTank$InScopeShot.class

     文件       6970  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\BossRobotTank.class

     文件       3360  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\BrainRobotTank.class

     文件       1871  2012-06-02 10:21  srcfans.com\TankWar\bin\cn\hnist\Joshua\HitPoint.class

     文件       1714  2012-06-02 10:45  srcfans.com\TankWar\bin\cn\hnist\Joshua\HitPointItem.class

     文件       3148  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\HydraShot.class

     文件        950  2012-06-02 10:45  srcfans.com\TankWar\bin\cn\hnist\Joshua\Item.class

     文件       3320  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\NormalShot.class

     文件       1163  2012-06-02 10:21  srcfans.com\TankWar\bin\cn\hnist\Joshua\RobotTank$RTANKTYPE.class

     文件       6415  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\RobotTank.class

     文件       1775  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\Shot.class

     文件       1949  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\ShotBomb.class

     文件       1480  2012-06-02 10:45  srcfans.com\TankWar\bin\cn\hnist\Joshua\ShotsItem.class

     文件       2884  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\SpecialShot.class

     文件       2348  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\SuperShot.class

     文件       3486  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\SuperShotBomb.class

     文件       1205  2012-06-02 10:21  srcfans.com\TankWar\bin\cn\hnist\Joshua\Tank$TANK_DIR.class

     文件       8349  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\Tank.class

     文件       3335  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\TankBomb.class

     文件        855  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\TankClient$frameClose.class

     文件        921  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\TankClient$MouseCleckLis.class

     文件        989  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\TankClient$MouseMoveLis.class

     文件       1354  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\TankClient$RepaintThread.class

     文件       1726  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\TankClient$RobotTanksThread.class

     文件       1061  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\TankClient$TankMoveLis.class

     文件       5132  2012-06-02 10:22  srcfans.com\TankWar\bin\cn\hnist\Joshua\TankClient.class

............此处省略124个文件信息

评论

共有 条评论