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); 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 - GamePanel.camera.x + Player.PLAYER_WIDTH / 2, y + Player.PLAYER_HEIGHT / 2, 2, 2); } loopCounter++; } } }