protected override void BeginRun() { Sound.PlayCue(Sounds.TitleMusic); //Kick off the game by loading the logo splash screen ChangeState(GameState.LogoSplash); //Make a reference copy so that drawingScreen doesn't start out as null. //this.drawingScreen = this.currentScreen; float fieldOfView = (float)Math.PI / 4; float aspectRatio = (float)FixedDrawingWidth / (float)FixedDrawingHeight; float nearPlane = 10f; float farPlane = 700f; camera = new Camera(fieldOfView, aspectRatio, nearPlane, farPlane); camera.ViewPosition = new Vector3(0, 0, 500); ///////////////////////////// // start threads for Update and Draw soundThread = new Thread(new ThreadStart(startSoundMT)); updateThread = new Thread(new ThreadStart(startUpdateMT)); soundThread.Start(); updateThread.Start(); #if XBOX360 // set affinity of main thread to 1 Thread.CurrentThread.SetProcessorAffinity(1); #endif base.BeginRun(); }
protected override void BeginRun() { Sound.PlayCue(Sounds.TitleMusic); //Kick off the game by loading the logo splash screen ChangeState(GameState.LogoSplash); DrawBuff = UpdateBuff.Copy(); float fieldOfView = (float)Math.PI / 4; float aspectRatio = (float)FixedDrawingWidth / (float)FixedDrawingHeight; float nearPlane = 10f; float farPlane = 700f; camera = new Camera(fieldOfView, aspectRatio, nearPlane, farPlane); camera.ViewPosition = new Vector3(0, 0, 500); base.BeginRun(); }