25 lines
729 B
Java
25 lines
729 B
Java
import java.awt.*;
|
|
import java.awt.image.BufferedImage;
|
|
import java.io.Serializable;
|
|
|
|
public class BombDirectionShow extends StickyBomb implements Serializable {
|
|
public BombDirectionShow(int x, int y, int xVelocity, int yVelocity) {
|
|
super(x, y, xVelocity, yVelocity, null, null);
|
|
WIDTH = 25;
|
|
HEIGHT = 25;
|
|
}
|
|
|
|
public void draw(Graphics g){
|
|
update();
|
|
isMove = true;
|
|
int loopCounter = 0;
|
|
while(isMove&&loopCounter<10) {
|
|
super.move();
|
|
if(isMove&&canUpdate(0,0)) {
|
|
g.drawRect(x - GameFrame.game.camera.x + Player.PLAYER_WIDTH / 2, y + Player.PLAYER_HEIGHT / 2, 2, 2);
|
|
}
|
|
loopCounter++;
|
|
}
|
|
}
|
|
}
|