96编辑器旗下产品
找图
终身
ID:0
到期时间:永久
退出登录
您的位置:首页 > 百科管理 > 详情

坦克大战 素材-关于坦克大战

原创:96作图 2023-06-15 11:14:25
  • java坦克大战图片素材,谁有啊

  • 我有怎么给你。。。

    这个源码里面有图片,在image里的right-brick,left-brick

  • (100分)Java写“坦克大战”

  • package ;

    import ;

    import ;

    import ;

    import ;

    import ;

    import ;

    import ;

    import ;

    import ;

    import ;

    import ;

    import ;

    /**

    * 这个类的作用是坦克游戏的主窗口

    * @author mashibing

    *

    */

    public class TankClient extends Frame {

    /**

    * 整个坦克游戏的宽度

    */

    public static final int GAME_WIDTH = 800;

    public static final int GAME_HEIGHT = 600;

    Tank myTank = new Tank(50, 50, true, , this);

    Wall w1 = new Wall(100, 200, 20, 150, this), w2 = new Wall(300, 100, 300, 20, this);

    List<Explode> explodes = new ArrayList<Explode>();

    List<Missile> missiles = new ArrayList<Missile>();

    List<Tank> tanks = new ArrayList<Tank>();

    Image offScreenImage = null;

    Blood b = new Blood();

    public void paint(Graphics g) {

    /*

    * 指明子弹-爆炸-坦克的数量

    * 以及坦克的生命值

    */

    g.drawString("missiles count:" + (), 10, 50);

    g.drawString("explodes count:" + (), 10, 70);

    g.drawString("tanks count:" + (), 10, 90);

    g.drawString("tanks life:" + (), 10, 110);

    if(() <= 0) {

    for(int i=0; i<(("reProduceTankCount")); i++) {

    (new Tank(50 + 40*(i+1), 50, false, Direction.D, this));

    }

    }

    for(int i=0; i<(); i++) {

    Missile m = (i);

    m.hitTanks(tanks);

    m.hitTank(myTank);

    m.hitWall(w1);

    m.hitWall(w2);

    m.draw(g);

    //if(!m.isLive()) (m);

    //else m.draw(g);

    }

    for(int i=0; i<(); i++) {

    Explode e = (i);

    e.draw(g);

    }

    for(int i=0; i<(); i++) {

    Tank t = (i);

    t.collidesWithWall(w1);

    t.collidesWithWall(w2);

    t.collidesWithTanks(tanks);

    t.draw(g);

    }

    (g);

    (b);

    (g);

    (g);

    b.draw(g);

    }

    public void update(Graphics g) {

    if(offScreenImage == null) {

    offScreenImage = (GAME_WIDTH, GAME_HEIGHT);

    }

    Graphics gOffScreen = ();

    Color c = ();

    ();

    (0, 0, GAME_WIDTH, GAME_HEIGHT);

    (c);

    paint(gOffScreen);

    g.drawImage(offScreenImage, 0, 0, null);

    }

    /**

    * 本方法显示坦克主窗口

    *

    */

    public void lauchFrame() {

    int initTankCount = (("initTankCount"));

    for(int i=0; i<initTankCount; i++) {

    (new Tank(50 + 40*(i+1), 50, false, Direction.D, this));

    }

    //(400, 300);

    (GAME_WIDTH, GAME_HEIGHT);

    ("TankWar");

    (new WindowAdapter() {

    public void windowClosing(WindowEvent e) {

    (0);

    }

    });

    (false);

    ();

    (new KeyMonitor());

    setVisible(true);

    new Thread(new PaintThread()).start();

    }

    public static void main(String[] args) {

    TankClient tc = new TankClient();

    ();

    }

    private class PaintThread implements Runnable {

    public void run() {

    while(true) {

    repaint();

    try {

    (50);

    } catch (InterruptedException e) {

    e.printStackTrace();

    }

    }

    }

    }

    private class KeyMonitor extends KeyAdapter {

    public void keyReleased(KeyEvent e) {

    (e);

    }

    public void keyPressed(KeyEvent e) {

    (e);

    }

    }

    }

  • 关于坦克大战

  • FC游戏坦克大战?....这个做毕业设计可不是什么好课题...

    关于说明就不要说了,这个比对也比不出个所以然.

    发展现状来说的话.

    目前趋势是网络化,立体化和多样化.为什么这么说?

    网络化的市场让游戏变成人和人的交战,而不是人和电脑的对战,这样可以增加游戏的难度,游戏的时间和游戏的寿命.

    立体化呢?为了适应现在越来越3D的趋势,游戏有必要做的更加的完善,趋向3D并且加重环境描写.

    多样化则是增加游戏的任务,游戏的耐玩性而在坦克大战里增加更多的内容加大其可玩性.比如:装备,道具,对战方式,任务合作模式等等

    可以想像,如果坦克大战还是人机对战的模式,并且协作性不提高的话,玩家对该游戏的选择性将大大降低,最终成为历史.

    最新文章 更多
    最新素材 更多
    公司介绍 网站地图 图片资讯
    Copyright © 2010-2022 山东找图网络科技有限公司  鲁ICP备18007836号-3  邮箱:15653358549@163.com