public void paint(Graphics2D g) {
        if(animated) g.drawImage(game.bitmapFact.getEntityImage(name + animFrame), drawX, drawY, null);
        else g.drawImage(game.bitmapFact.getEntityImage(name), drawX, drawY, null);
        
        if(game.getDevMode()) g.drawRect(drawX, drawX, getBounds().width, getBounds().height);
    }