Exemplo n.º 1
0
        private void GameStart()
        {
            Player = new Ship(tempTexture, screenRectangle);

            missiles = new Missile[10];
            for (int i = 0; i < missiles.Length; i++)
            {
                missiles[i] = new Missile(missileTexture, explosionTexture, screenRectangle, random.Next(0, screenRectangle.Width));
            }

            powers = new powerUp[3];
            powers[redPow] = new powerUp(redTexture, screenRectangle, random.Next(0, screenRectangle.Width));
            powers[greenPow] = new powerUp(greenTexture, screenRectangle, random.Next(0, screenRectangle.Width));
            powers[bluePow] = new powerUp(blueTexture, screenRectangle, random.Next(0, screenRectangle.Width));

            score = 0;

            Menu = new startMenu(menuTexture);
            gameOver = new GG(ggTexture, lost);
            hScore = new highScore(hsTexture);
            start = false;
        }