Example #1
0
        private void SpawnEnemies()
        {
            EnemySpinner spinner1 = EnemySpinnerFactory.CreateNew();

            spinner1.EnemyState   = EnemySpinner.VariableState.DarkGrey;
            spinner1.TurningSpeed = 50;
            spinner1.Position     = new Microsoft.Xna.Framework.Vector3(-200, 200, 0);
            EnemyKamikaze kamikaze3 = EnemyKamikazeFactory.CreateNew();

            kamikaze3.Position   = new Microsoft.Xna.Framework.Vector3(200, 200, 0);
            kamikaze3.EnemyState = EnemyKamikaze.VariableState.Purple;
        }
Example #2
0
        private void SpawnSpinner()
        {
            Vector3 position = GetRandomSpinnerPosition();
            Vector3 velocity = GetRandomSpinnerVelocity(position);

            EnemySpinner spinner = EnemySpinnerFactory.CreateNew();

            spinner.CurrentState = EnemySpinner.VariableState.DarkGrey;
            spinner.Position     = position;
            spinner.Velocity     = velocity;

            mLastSpawnTimeS = FlatRedBall.Screens.ScreenManager.CurrentScreen.PauseAdjustedCurrentTime;
        }
Example #3
0
        private void SpawnEnemies()
        {
            EnemySpinner spinner1 = EnemySpinnerFactory.CreateNew();

            spinner1.EnemyState   = EnemySpinner.VariableState.DarkGrey;
            spinner1.TurningSpeed = 50;
            spinner1.Position     = new Microsoft.Xna.Framework.Vector3(-200, 200, 0);
            EnemySpinner spinner2 = EnemySpinnerFactory.CreateNew();

            spinner2.EnemyState   = EnemySpinner.VariableState.Metallic;
            spinner2.TurningSpeed = 70;
            spinner2.Position     = new Microsoft.Xna.Framework.Vector3(0, 200, 0);
            EnemySpinner spinner3 = EnemySpinnerFactory.CreateNew();

            spinner3.EnemyState   = EnemySpinner.VariableState.Purple;
            spinner3.TurningSpeed = 90;
            spinner3.Position     = new Microsoft.Xna.Framework.Vector3(200, 200, 0);
        }