21 lines
595 B
Java
21 lines
595 B
Java
|
import java.awt.*;
|
||
|
import java.awt.image.BufferedImage;
|
||
|
|
||
|
public class BombDirectionShow extends StickyBomb{
|
||
|
public BombDirectionShow(int x, int y, int xVelocity, int yVelocity) {
|
||
|
super(x, y, xVelocity, yVelocity, null, null);
|
||
|
}
|
||
|
|
||
|
public void draw(Graphics g){
|
||
|
isMove = true;
|
||
|
int loopCounter = 0;
|
||
|
while(isMove&&loopCounter<10) {
|
||
|
super.move();
|
||
|
if(isMove) {
|
||
|
g.drawRect(x - GamePanel.camera.x + Player.PLAYER_WIDTH / 2, y + Player.PLAYER_HEIGHT / 2, 2, 2);
|
||
|
}
|
||
|
loopCounter++;
|
||
|
}
|
||
|
}
|
||
|
}
|