Cannot get entity to spawn? - JAVA
<p>I started making a simple game with java, it's similar to Space Invaders.  I started off with a central class called <code>Enemy</code>, and I had all the enemies spawn from that class, but when I tried to make a separate class for the next wave of enemies, they won't spawn.  Not sure if that's specific enough.. =\  Here's my code:</p>

<pre><code>public class EnemyLv2 extends Entity
{
    float fSpeed = 2;

    private int startY;

    public EnemyLv2(int x, int y)
    {
        super(x, y);
        startY = y;
    }

    public void update()
    {
        y += fSpeed;
        checkCollisions();
        checkOffScreen();
    }

    public void draw(Graphics2D g2d)
    {
        if(GameFrame.level == 2)
        {
            g2d.drawImage(getLv2Img(), x, y, null);
        }
    }

    public Image getLv2Img()
    {
        ImageIcon ic = new ImageIcon("C:\\Users\\Connor\\Desktop\\Java Game\\Cosmic Defense\\res\\EnemyLv2.png");
        return ic.getImage();
    }

    public void checkCollisions()
    {
        for(int i = 0; i &lt; GameFrame.getMissileList().size(); i++)
        {
            Missile m = GameFrame.getMissileList().get(i);

            if(getBounds().intersects(m.getBounds()))
            {
                GameFrame.removeEnemyLv2(this);
                GameFrame.removeMissile(m);
                GameFrame.iMoney += 50;
            }
        }
    }

    public Rectangle getBounds()
    {
        return new Rectangle(x, y, getLv2Img().getWidth(null), getLv2Img().getHeight(null));
    }

    public void checkOffScreen()
    {
        if(y &gt;= 820)
        {
            y = startY;
        }
    }
}
</code></pre>
