Esempio n. 1
0
        public Enemy SpawnStrafingSlicer(Vector2 position, float rotation, float startVelocity = 35f, float endVelocity = 50f)
        {
            Enemy e = new Slicer(manager.thisScene, position);

            e.DrawAtTrueRotation = true;
            e.Rotation           = rotation;
            e.Velocity           = startVelocity;
            e.LerpVelocity(endVelocity, 5f);

            return(e);
        }