master
Jian Hu 3 years ago
parent 796b2c6863
commit 0da2608930

Binary file not shown.

@ -23,7 +23,6 @@ public class CircleTank extends BaseTank{
public static final int WIDTH = ResourceManager.tankD.getWidth();
public static final int HEIGHT = ResourceManager.tankD.getHeight();
private Random random = new Random();
public Rectangle rect = new Rectangle();
FireStrategy fireStrategy;
@ -58,8 +57,8 @@ public class CircleTank extends BaseTank{
if(!living) tankFrame.enemyTanks.remove(this);
//根据方向绘制坦克
Color c = g.getColor();
g.setColor(this.group == Group.BAD ? Color.RED : Color.YELLOW);
g.fillOval(x,y, 40, 40);
g.setColor(this.group == Group.BAD ? Color.PINK : Color.YELLOW);
g.fillOval(x,y, 50, 50);
g.setColor(c);
move();
}

Loading…
Cancel
Save