Example #1
0
 protected override void Initialize()
 {
     fpsCam = new QuakeCamera(GraphicsDevice.Viewport, new Vector3(2, 30, 15), -MathHelper.PiOver2 * 0, -MathHelper.Pi / 4.0f);
     graphics.PreferredBackBufferWidth  = 500;
     graphics.PreferredBackBufferHeight = 500;
     base.Initialize();
 }
        protected override void Initialize()
        {
            fpsCam = new QuakeCamera(GraphicsDevice.Viewport, new Vector3(10, 6, 9), MathHelper.Pi / 8.0f * 1.0f, -MathHelper.Pi / 8.0f * 1.0f);

            List <Vector3> trackPoints = new List <Vector3>();

            trackPoints.Add(new Vector3(0, 0, -2));

            trackPoints.Add(new Vector3(7, 0, 1));
            trackPoints.Add(new Vector3(7, 3, 1));
            trackPoints.Add(new Vector3(4, 3, 0));
            trackPoints.Add(new Vector3(4, 0, 0));

            trackPoints.Add(new Vector3(10, 0, 0));
            trackPoints.Add(new Vector3(8, 0, -4));
            trackPoints.Add(new Vector3(12, 0, -7));
            trackPoints.Add(new Vector3(8, 1, -10));
            trackPoints.Add(new Vector3(12, 0, -14));
            trackPoints.Add(new Vector3(6, 0, -17));

            trackPoints.Add(new Vector3(2, 1, -13));
            trackPoints.Add(new Vector3(9, 2, -6));
            trackPoints.Add(new Vector3(4, 1, 2));
            trackPoints.Add(new Vector3(1, 1, 2));

            trackPoints.Add(new Vector3(3, 0, -3));
            trackPoints.Add(new Vector3(9, 0, -10));
            trackPoints.Add(new Vector3(6, 0, -11));

            List <Vector3> extendedTrackPoints = GenerateTrackPoints(trackPoints);

            trackVertices = GenerateTrackVertices(extendedTrackPoints);

            base.Initialize();
        }
        protected override void Initialize()
        {
            fpsCam     = new QuakeCamera(GraphicsDevice.Viewport, new Vector3(0.0f, 40.0f, 60.0f), 0, -MathHelper.Pi / 6.0f);
            spotLights = new SpotLight[NumberOfLights];

            base.Initialize();
        }
        protected override void Initialize()
        {
            fpsCam = new QuakeCamera(GraphicsDevice.Viewport, new Vector3(0, 0, 5), 0, 0);

            audioEngine = new AudioEngine("Content/Audio/MyXACTproject.xgs");
            waveBank    = new WaveBank(audioEngine, "Content/Audio/myWaveBank.xwb");
            soundBank   = new SoundBank(audioEngine, "Content/Audio/mySoundBank.xsb");

            cue1 = soundBank.GetCue("audio1");

            base.Initialize();
        }
        protected override void Initialize()
        {
            fpsCam = new QuakeCamera(GraphicsDevice.Viewport, new Vector3(7, 10, 7), MathHelper.PiOver4, -MathHelper.PiOver4);

            List <Vector3> basePoints = new List <Vector3>();

            basePoints.Add(new Vector3(2, 0, 4));
            basePoints.Add(new Vector3(0, 0, 0));
            basePoints.Add(new Vector3(-2, 0, -4));
            basePoints.Add(new Vector3(2, 0, -4));
            basePoints.Add(new Vector3(0, 1, 0));
            basePoints.Add(new Vector3(-2, 0, 4));

            List <Vector3> extendedTrackPoints = GenerateTrackPoints(basePoints);

            trackVertices = GenerateTrackVertices(extendedTrackPoints);

            base.Initialize();
        }
        protected override void Initialize()
        {
            fpsCam = new QuakeCamera(GraphicsDevice.Viewport, new Vector3(5, 2, 15), 0, 0);

            List <Vector3> points = new List <Vector3>();

            points.Add(new Vector3(0, 0, 0));
            points.Add(new Vector3(2, 2, 0));
            points.Add(new Vector3(4, 0, 0));
            points.Add(new Vector3(6, 6, 0));
            points.Add(new Vector3(8, 2, 0));
            points.Add(new Vector3(10, 0, 0));

            List <Vector3> crList1 = InterpolateCR(points[0], points[1], points[2], points[3]);
            List <Vector3> crList2 = InterpolateCR(points[1], points[2], points[3], points[4]);
            List <Vector3> crList3 = InterpolateCR(points[2], points[3], points[4], points[5]);

            straightVertices = XNAUtils.VerticesFromVector3List(points, Color.Red);
            crVertices1      = XNAUtils.VerticesFromVector3List(crList1, Color.Green);
            crVertices2      = XNAUtils.VerticesFromVector3List(crList2, Color.Blue);
            crVertices3      = XNAUtils.VerticesFromVector3List(crList3, Color.Yellow);

            base.Initialize();
        }
Example #7
0
 protected override void Initialize()
 {
     fpsCam = new QuakeCamera(GraphicsDevice.Viewport, new Vector3(-3.5f, 3, 5.3f), -MathHelper.PiOver4, 0);
     base.Initialize();
 }
 protected override void Initialize()
 {
     fpsCam = new QuakeCamera(GraphicsDevice.Viewport);
     base.Initialize();
 }
 protected override void Initialize()
 {
     fpsCam = new QuakeCamera(GraphicsDevice.Viewport, new Vector3(-2, 1, 2.0f), -MathHelper.PiOver4, -MathHelper.Pi / 8.0f);
     base.Initialize();
 }
 protected override void Initialize()
 {
     fpsCam = new QuakeCamera(GraphicsDevice.Viewport, new Vector3(5, 0, 20), 0, 0);
     InitMirror();
     base.Initialize();
 }
        protected override void Initialize()
        {
            fpsCam = new QuakeCamera(GraphicsDevice.Viewport, new Vector3(110, 1.1f, -110), MathHelper.Pi * 3.0f / 4.0f, 0);

            base.Initialize();
        }
 protected override void Initialize()
 {
     fpsCam = new QuakeCamera(GraphicsDevice.Viewport, new Vector3(6.0f, 4.0f, 4.0f), 0, -MathHelper.Pi / 30.0f);
     base.Initialize();
 }
Example #13
0
 protected override void Initialize()
 {
     fpsCam           = new QuakeCamera(GraphicsDevice.Viewport, new Vector3(-10, 50, 10), -MathHelper.PiOver4, -MathHelper.Pi / 8.0f);
     pointerScreenPos = new Vector2(GraphicsDevice.Viewport.Width / 2, GraphicsDevice.Viewport.Height / 2);
     base.Initialize();
 }
 protected override void Initialize()
 {
     fpsCam = new QuakeCamera(graphics.GraphicsDevice.Viewport, new Vector3(1, 15, -1), 0, 0);
     base.Initialize();
 }
 protected override void Initialize()
 {
     fpsCam = new QuakeCamera(graphics.GraphicsDevice.Viewport);
     InitPostProcessingVertices();
     base.Initialize();
 }