资源简介
一个用eclipe开发的Java坦克大战小游戏
代码片段和文件信息
import java.awt.*;
import java.util.List;
public class Missile {
private int x;
private int y;
private Tank.Direction dir;
public static final int XSPEED = 10;
public static final int YSPEED = 10;
// private boolean good = null;
/************ 炮弹的宽和高 ************/
public static final int WIDTH = 10;
public static final int HEIGHT = 10;
private boolean live = true;
private boolean good;
private TankClient tc;
public Missile(int x int y Tank.Direction dir TankClient tc boolean good) {
super();
this.x = x;
this.y = y;
this.dir = dir;
this.tc = tc;
this.good = good;
}
public void draw(Graphics g) {
Color c = g.getColor();
g.setColor(Color.BLUE);
g.fillOval(x y WIDTH HEIGHT);
g.setColor(c);
move();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 301 2010-07-27 11:22 TankWar1.5\.classpath
文件 386 2010-07-27 11:22 TankWar1.5\.project
文件 629 2010-07-27 11:22 TankWar1.5\.settings\org.eclipse.jdt.core.prefs
文件 2842 2010-07-28 15:58 TankWar1.5\bin\Missile.class
文件 1287 2010-07-28 15:58 TankWar1.5\bin\Tank$Direction.class
文件 6189 2010-07-28 15:58 TankWar1.5\bin\Tank.class
文件 642 2010-07-28 15:58 TankWar1.5\bin\TankClient$1.class
文件 739 2010-07-28 15:58 TankWar1.5\bin\TankClient$KeyMonitor.class
文件 760 2010-07-28 15:58 TankWar1.5\bin\TankClient$PaintThread.class
文件 3979 2010-07-28 15:58 TankWar1.5\bin\TankClient.class
文件 1690 2010-07-27 19:50 TankWar1.5\src\Missile.java
文件 6558 2010-07-27 19:50 TankWar1.5\src\Tank.java
文件 3332 2010-07-27 21:10 TankWar1.5\src\TankClient.java
文件 10360 2010-07-27 19:53 TankWar1.5\很人—坦克大战.jar
目录 0 2010-07-27 11:22 TankWar1.5\.settings
目录 0 2010-07-28 15:58 TankWar1.5\bin
目录 0 2010-07-27 11:22 TankWar1.5\src
目录 0 2010-07-28 14:27 TankWar1.5
----------- --------- ---------- ----- ----
39694 18
评论
共有 条评论