コード例 #1
0
        public override void Initialize()
        {
            base.Initialize();
            PolytronLogo polytronLogo = this;
            Mesh         mesh1        = new Mesh();

            mesh1.AlwaysOnTop = true;
            Mesh mesh2 = mesh1;

            DefaultEffect.VertexColored vertexColored1 = new DefaultEffect.VertexColored();
            vertexColored1.ForcedProjectionMatrix = new Matrix?(Matrix.CreateOrthographic(1.428571f, 1.428571f, 0.1f, 100f));
            vertexColored1.ForcedViewMatrix       = new Matrix?(Matrix.CreateLookAt(Vector3.UnitZ, -Vector3.UnitZ, Vector3.Up));
            DefaultEffect.VertexColored vertexColored2 = vertexColored1;
            mesh2.Effect = (BaseEffect)vertexColored2;
            Mesh mesh3 = mesh1;

            polytronLogo.LogoMesh = mesh3;
            for (int index1 = 0; index1 < 4; ++index1)
            {
                FezVertexPositionColor[] vertices = new FezVertexPositionColor[202];
                for (int index2 = 0; index2 < vertices.Length; ++index2)
                {
                    vertices[index2] = new FezVertexPositionColor(Vector3.Zero, PolytronLogo.StripColors[index1]);
                }
                this.LogoMesh.AddGroup().Geometry = (IIndexedPrimitiveCollection) new IndexedUserPrimitives <FezVertexPositionColor>(vertices, Enumerable.ToArray <int>(Enumerable.Range(0, vertices.Length)), PrimitiveType.TriangleStrip);
            }
            float viewScale = SettingsManager.GetViewScale(this.GraphicsDevice);
            int   width     = this.GraphicsDevice.Viewport.Width;
            int   height    = this.GraphicsDevice.Viewport.Height;

            this.LogoMesh.Position = new Vector3(-0.1975f, -0.25f, 0.0f);
            this.LogoMesh.Scale    = new Vector3(new Vector2(500f) * viewScale / new Vector2((float)width, (float)height), 1f);
            bool flag = (double)viewScale >= 1.5;

            this.sPolytron    = this.CMProvider.Get(CM.Intro).Load <SoundEffect>("Sounds/Intro/PolytronJingle");
            this.PolytronText = this.CMProvider.Get(CM.Intro).Load <Texture2D>("Other Textures/splash/polytron" + (flag ? "_1440" : ""));
            this.spriteBatch  = new SpriteBatch(this.GraphicsDevice);
        }
コード例 #2
0
ファイル: Intro.cs プロジェクト: Zeludon/FEZ
 protected override void Dispose(bool disposing)
 {
   if (this.CMProvider != null)
   {
     this.CMProvider.Dispose(CM.Intro);
     this.GameState.DynamicUpgrade -= new Action(this.Kill);
     Intro.Instance = (Intro) null;
     if (this.FezLogo != null)
       ServiceHelper.RemoveComponent<FezLogo>(this.FezLogo);
     if (this.PolytronLogo != null)
     {
       ServiceHelper.RemoveComponent<PolytronLogo>(this.PolytronLogo);
       this.PolytronLogo = (PolytronLogo) null;
     }
     if (this.IntroPanDown != null && !this.IntroPanDown.IsDisposed)
       ServiceHelper.RemoveComponent<IntroPanDown>(this.IntroPanDown);
     if (this.IntroZoomIn != null && !this.IntroZoomIn.IsDisposed)
       ServiceHelper.RemoveComponent<IntroZoomIn>(this.IntroZoomIn);
   }
   if (Intro.Starfield != null && Intro.Starfield.IsDisposed)
     Intro.Starfield = (StarField) null;
   this.TrixelPlanes.Dispose();
   this.TrialMesh.Dispose();
   if (this.SaveIndicatorMesh != null)
     this.SaveIndicatorMesh.Dispose();
   base.Dispose(disposing);
 }
コード例 #3
0
ファイル: Intro.cs プロジェクト: Zeludon/FEZ
 protected override void LoadContent()
 {
   ContentManager contentManager = this.CMProvider.Get(CM.Intro);
   StaticText.GetString("Loading");
   bool flag = (double) SettingsManager.GetViewScale(this.GraphicsDevice) >= 1.5;
   this.TrixelEngineText = contentManager.Load<Texture2D>("Other Textures/splash/trixels" + (flag ? "_1440" : ""));
   this.TrapdoorLogo = contentManager.Load<Texture2D>("Other Textures/splash/trapdoor");
   this.spriteBatch = new SpriteBatch(this.GraphicsDevice);
   this.tr = new GlyphTextRenderer(this.Game);
   this.TrixelPlanes.Position = (Vector3.Right + Vector3.Up) * -0.125f - Vector3.Up * 0.25f;
   this.TrixelPlanes.Scale = new Vector3(0.75f);
   this.TrixelPlanes.AddFace(Vector3.One, Vector3.Zero, FaceOrientation.Back, Color.Magenta, true, false);
   this.TrixelPlanes.AddFace(Vector3.One, Vector3.Zero, FaceOrientation.Top, Color.Yellow, true, false);
   this.TrixelPlanes.AddFace(Vector3.One, Vector3.Zero, FaceOrientation.Left, Color.Cyan, true, false);
   SettingsManager.SetupViewport(this.GraphicsDevice, false);
   float aspectRatio1 = this.GraphicsDevice.Viewport.AspectRatio;
   Mesh mesh1 = this.TrixelPlanes;
   DefaultEffect.VertexColored vertexColored1 = new DefaultEffect.VertexColored();
   vertexColored1.ForcedProjectionMatrix = new Matrix?(Matrix.CreateOrthographic(2f * aspectRatio1, 2f, 0.1f, 100f));
   vertexColored1.ForcedViewMatrix = new Matrix?(Matrix.CreateLookAt(Vector3.UnitY - Vector3.UnitZ - Vector3.UnitX, Vector3.Zero, Vector3.Up));
   DefaultEffect.VertexColored vertexColored2 = vertexColored1;
   mesh1.Effect = (BaseEffect) vertexColored2;
   Intro intro1 = this;
   Mesh mesh2 = new Mesh();
   mesh2.AlwaysOnTop = true;
   mesh2.DepthWrites = false;
   Mesh mesh3 = mesh2;
   DefaultEffect.VertexColored vertexColored3 = new DefaultEffect.VertexColored();
   vertexColored3.ForcedProjectionMatrix = new Matrix?(Matrix.CreateOrthographic(5f * aspectRatio1, 5f, 0.1f, 100f));
   vertexColored3.ForcedViewMatrix = new Matrix?(Matrix.CreateLookAt(Vector3.UnitY - Vector3.UnitZ - Vector3.UnitX, Vector3.Zero, Vector3.Up));
   DefaultEffect.VertexColored vertexColored4 = vertexColored3;
   mesh3.Effect = (BaseEffect) vertexColored4;
   Mesh mesh4 = mesh2;
   intro1.TrialMesh = mesh4;
   this.TrialMesh.AddColoredBox(Vector3.One, Vector3.Zero, new Color(209, 0, 55), true);
   ServiceHelper.AddComponent((IGameComponent) (this.PolytronLogo = new PolytronLogo(this.Game)));
   this.screen = Intro.Screen.WhiteScreen;
   Intro.FirstBootComplete = true;
   if (this.Restarted && !this.FullLogos)
     this.screen = Intro.Screen.Fez;
   if (this.GameState.ForcedSignOut)
   {
     this.InputManager.ClearActiveController();
     this.screen = Intro.Screen.SignInChooseDevice;
     ServiceHelper.AddComponent((IGameComponent) (Intro.Starfield = new StarField(this.Game)));
   }
   if (this.GameState.LoggedOutPlayerTag != null)
   {
     this.InputManager.ClearActiveController();
     this.screen = Intro.Screen.SignOutPrompt;
     ServiceHelper.AddComponent((IGameComponent) (Intro.Starfield = new StarField(this.Game)));
   }
   if (Fez.SkipLogos)
     this.screen = Intro.Screen.Fez;
   if (this.Fake)
   {
     this.screen = Intro.Screen.Polytron;
     this.PolytronLogo.Enabled = true;
   }
   if (this.Sell)
   {
     this.SoundManager.MuteAmbienceTracks();
     this.SoundManager.PlayNewSong("GOMEZ", 0.1f);
     this.screen = Intro.Screen.SellScreen;
   }
   this.GameState.ForceTimePaused = true;
   this.GameState.InCutscene = true;
   this.phaseTime = TimeSpan.FromSeconds(-0.600000023841858);
   this.sTitleBassHit = contentManager.Load<SoundEffect>("Sounds/Intro/LogoZoom");
   this.sTrixelIn = contentManager.Load<SoundEffect>("Sounds/Intro/TrixelLogoIn");
   this.sTrixelOut = contentManager.Load<SoundEffect>("Sounds/Intro/TrixelLogoOut");
   this.sExitGame = contentManager.Load<SoundEffect>("Sounds/Ui/Menu/ExitGame");
   this.sConfirm = contentManager.Load<SoundEffect>("Sounds/Ui/Menu/Confirm");
   this.sDrone = contentManager.Load<SoundEffect>("Sounds/Intro/FezLogoDrone");
   this.sStarZoom = contentManager.Load<SoundEffect>("Sounds/Intro/StarZoom");
   ServiceHelper.AddComponent((IGameComponent) (this.FezLogo = new FezLogo(this.Game)
   {
     Glitched = this.Glitch
   }));
   if (this.Sell)
   {
     this.FezLogo.Inverted = true;
     this.FezLogo.TransitionStarted = true;
     this.FezLogo.LogoTextureXFade = 1f;
     this.FezLogo.Opacity = 1f;
     Intro.Starfield = this.FezLogo.Starfield;
     this.Enabled = this.Visible = false;
   }
   if (Intro.HasShownSaveIndicator)
     return;
   float aspectRatio2 = this.GraphicsDevice.Viewport.AspectRatio;
   Intro intro2 = this;
   Mesh mesh5 = new Mesh();
   Mesh mesh6 = mesh5;
   DefaultEffect.VertexColored vertexColored5 = new DefaultEffect.VertexColored();
   vertexColored5.ForcedProjectionMatrix = new Matrix?(Matrix.CreateOrthographic(14f * aspectRatio2, 14f, 0.1f, 100f));
   vertexColored5.ForcedViewMatrix = new Matrix?(Matrix.CreateLookAt(new Vector3(0.0f, 0.0f, 10f), Vector3.Zero, Vector3.Up));
   DefaultEffect.VertexColored vertexColored6 = vertexColored5;
   mesh6.Effect = (BaseEffect) vertexColored6;
   mesh5.Blending = new BlendingMode?(BlendingMode.Alphablending);
   mesh5.AlwaysOnTop = true;
   mesh5.DepthWrites = false;
   Mesh mesh7 = mesh5;
   intro2.SaveIndicatorMesh = mesh7;
   this.SaveIndicatorMesh.AddFace(Vector3.One, Vector3.Zero, FaceOrientation.Front, Color.Red, true);
 }
コード例 #4
0
ファイル: DebugControls.cs プロジェクト: conankzhang/fez
        public override void Update(GameTime gameTime)
        {
            if (this.KeyboardState.GetKeyState(Keys.F1) == FezButtonState.Pressed)
            {
                this.GameState.DebugMode = true;
            }
            if (this.KeyboardState.GetKeyState(Keys.F2) == FezButtonState.Pressed)
            {
                this.GameState.DebugMode = false;
            }
            if (this.KeyboardState.GetKeyState(Keys.F3) == FezButtonState.Pressed)
            {
                this.SM.GlobalVolumeFactor = 0.0f;
            }
            if (this.KeyboardState.GetKeyState(Keys.F4) == FezButtonState.Pressed)
            {
                this.SM.GlobalVolumeFactor = 1f;
            }
            if (this.KeyboardState.GetKeyState(Keys.F5) == FezButtonState.Pressed)
            {
                this.GameState.ShowDebuggingBag = true;
            }
            if (this.KeyboardState.GetKeyState(Keys.F6) == FezButtonState.Pressed)
            {
                this.GameState.ShowDebuggingBag = false;
            }
            if (this.KeyboardState.GetKeyState(Keys.F9) == FezButtonState.Pressed)
            {
                this.TimeService.SetHour(4, true);
            }
            if (this.KeyboardState.GetKeyState(Keys.F10) == FezButtonState.Pressed)
            {
                this.TimeService.SetHour(12, true);
            }
            if (this.KeyboardState.GetKeyState(Keys.F11) == FezButtonState.Pressed)
            {
                this.TimeService.SetHour(20, true);
            }
            if (this.KeyboardState.GetKeyState(Keys.F12) == FezButtonState.Pressed)
            {
                this.TimeService.SetHour(0, true);
            }
            if (this.KeyboardState.GetKeyState(Keys.NumPad0) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D0) == FezButtonState.Pressed)
            {
                this.CameraManager.PixelsPerTrixel = 1f;
            }
            if (this.KeyboardState.GetKeyState(Keys.NumPad1) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D1) == FezButtonState.Pressed)
            {
                this.CameraManager.PixelsPerTrixel = 2f;
            }
            if (this.KeyboardState.GetKeyState(Keys.NumPad2) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D2) == FezButtonState.Pressed)
            {
                this.CameraManager.PixelsPerTrixel = 3f;
            }
            if (this.KeyboardState.GetKeyState(Keys.NumPad3) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D3) == FezButtonState.Pressed)
            {
                this.CameraManager.PixelsPerTrixel = 4f;
            }
            if (this.KeyboardState.GetKeyState(Keys.NumPad5) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D5) == FezButtonState.Pressed)
            {
                ++this.GameState.SaveData.CubeShards;
                this.GameState.SaveData.ScoreDirty = true;
                this.GameState.OnHudElementChanged();
            }
            if ((this.KeyboardState.GetKeyState(Keys.NumPad6) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D6) == FezButtonState.Pressed) && this.GameState.SaveData.CubeShards > 0)
            {
                --this.GameState.SaveData.CubeShards;
                this.GameState.SaveData.ScoreDirty = true;
                this.GameState.OnHudElementChanged();
            }
            if (this.KeyboardState.GetKeyState(Keys.NumPad7) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D7) == FezButtonState.Pressed)
            {
                ++this.GameState.SaveData.Keys;
                this.GameState.OnHudElementChanged();
            }
            if ((this.KeyboardState.GetKeyState(Keys.NumPad8) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D8) == FezButtonState.Pressed) && this.GameState.SaveData.Keys > 0)
            {
                --this.GameState.SaveData.Keys;
                this.GameState.OnHudElementChanged();
            }
            if (this.KeyboardState.GetKeyState(Keys.NumPad9) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D9) == FezButtonState.Pressed)
            {
                ++this.GameState.SaveData.SecretCubes;
                this.GameState.SaveData.ScoreDirty = true;
                this.GameState.OnHudElementChanged();
            }
            if (this.KeyboardState.GetKeyState(Keys.L) == FezButtonState.Pressed)
            {
                this.GameState.SaveData.HasDoneHeartReboot = true;
            }
            if (FezButtonStateExtensions.IsDown(this.KeyboardState.GetKeyState(Keys.LeftControl)) && this.KeyboardState.GetKeyState(Keys.S) == FezButtonState.Pressed)
            {
                this.GameState.SaveData.IsNew = false;
                this.GameState.Save();
            }
            if (this.KeyboardState.GetKeyState(Keys.H) == FezButtonState.Pressed)
            {
                this.BlackHoles.EnableAll();
            }
            if (this.KeyboardState.GetKeyState(Keys.J) == FezButtonState.Pressed)
            {
                this.BlackHoles.DisableAll();
            }
            if (this.KeyboardState.GetKeyState(Keys.K) == FezButtonState.Pressed)
            {
                this.BlackHoles.Randomize();
            }
            if (!Fez.LongScreenshot)
            {
                return;
            }
            if (this.KeyboardState.GetKeyState(Keys.R) == FezButtonState.Pressed)
            {
                this.SM.PlayNewSong((string)null);
                this.GameState.HideHUD    = true;
                this.PlayerManager.Action = ActionType.StandWinking;
                this.CameraManager.ChangeViewpoint(FezMath.GetRotatedView(this.CameraManager.Viewpoint, Fez.DoubleRotations ? 2 : 1));
            }
            if (this.KeyboardState.GetKeyState(Keys.T) != FezButtonState.Pressed)
            {
                return;
            }
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            DebugControls.\u003C\u003Ec__DisplayClass5 cDisplayClass5_1 = new DebugControls.\u003C\u003Ec__DisplayClass5();
            // ISSUE: reference to a compiler-generated field
            cDisplayClass5_1.\u003C\u003E4__this = this;
            this.SM.KillSounds(0.1f);
            this.SM.PlayNewSong((string)null, 0.1f);
            foreach (AmbienceTrack ambienceTrack in (IEnumerable <AmbienceTrack>) this.LevelManager.AmbienceTracks)
            {
                this.SM.MuteAmbience(ambienceTrack.Name, 0.1f);
            }
            if (this.pl != null)
            {
                ServiceHelper.RemoveComponent <PolytronLogo>(this.pl);
            }
            DebugControls debugControls = this;
            PolytronLogo  polytronLogo1 = new PolytronLogo(this.Game);

            polytronLogo1.DrawOrder = 10000;
            polytronLogo1.Opacity   = 1f;
            PolytronLogo polytronLogo2 = polytronLogo1;

            debugControls.pl = polytronLogo2;
            ServiceHelper.AddComponent((IGameComponent)this.pl);
            // ISSUE: variable of a compiler-generated type
            DebugControls.\u003C\u003Ec__DisplayClass5 cDisplayClass5_2 = cDisplayClass5_1;
            LogoRenderer logoRenderer1 = new LogoRenderer(this.Game);

            logoRenderer1.DrawOrder = 9999;
            logoRenderer1.Visible   = false;
            logoRenderer1.Enabled   = false;
            LogoRenderer logoRenderer2 = logoRenderer1;

            // ISSUE: reference to a compiler-generated field
            cDisplayClass5_2.tl = logoRenderer2;
            // ISSUE: reference to a compiler-generated field
            ServiceHelper.AddComponent((IGameComponent)cDisplayClass5_1.tl);
            // ISSUE: reference to a compiler-generated field
            ServiceHelper.AddComponent((IGameComponent)(cDisplayClass5_1.FezLogo = new FezLogo(this.Game)));
            SoundEffect soundEffect = this.CMProvider.Global.Load <SoundEffect>("Sounds/Intro/LogoZoom");

            // ISSUE: reference to a compiler-generated field
            cDisplayClass5_1.FezLogo.Visible = true;
            // ISSUE: reference to a compiler-generated field
            cDisplayClass5_1.FezLogo.Enabled = true;
            // ISSUE: reference to a compiler-generated field
            cDisplayClass5_1.FezLogo.TransitionStarted = true;
            // ISSUE: reference to a compiler-generated field
            cDisplayClass5_1.FezLogo.Opacity = 1f;
            // ISSUE: reference to a compiler-generated field
            cDisplayClass5_1.FezLogo.Inverted = true;
            // ISSUE: reference to a compiler-generated field
            cDisplayClass5_1.FezLogo.SinceStarted = 4.5f;
            // ISSUE: reference to a compiler-generated field
            cDisplayClass5_1.FezLogo.HalfSpeed = true;
            // ISSUE: reference to a compiler-generated field
            cDisplayClass5_1.FezLogo.Update(new GameTime());
            SoundEffectExtensions.Emit(soundEffect);
            SoundManager.NoMoreSounds    = true;
            this.GameState.SkipRendering = true;
            // ISSUE: reference to a compiler-generated method
            Waiters.Wait(7.0, new Action(cDisplayClass5_1.\u003CUpdate\u003Eb__2));
        }
コード例 #5
0
ファイル: DebugControls.cs プロジェクト: tanis2000/FEZ
 public override void Update(GameTime gameTime)
 {
   if (this.KeyboardState.GetKeyState(Keys.F1) == FezButtonState.Pressed)
     this.GameState.DebugMode = true;
   if (this.KeyboardState.GetKeyState(Keys.F2) == FezButtonState.Pressed)
     this.GameState.DebugMode = false;
   if (this.KeyboardState.GetKeyState(Keys.F3) == FezButtonState.Pressed)
     this.SM.GlobalVolumeFactor = 0.0f;
   if (this.KeyboardState.GetKeyState(Keys.F4) == FezButtonState.Pressed)
     this.SM.GlobalVolumeFactor = 1f;
   if (this.KeyboardState.GetKeyState(Keys.F5) == FezButtonState.Pressed)
     this.GameState.ShowDebuggingBag = true;
   if (this.KeyboardState.GetKeyState(Keys.F6) == FezButtonState.Pressed)
     this.GameState.ShowDebuggingBag = false;
   if (this.KeyboardState.GetKeyState(Keys.F9) == FezButtonState.Pressed)
     this.TimeService.SetHour(4, true);
   if (this.KeyboardState.GetKeyState(Keys.F10) == FezButtonState.Pressed)
     this.TimeService.SetHour(12, true);
   if (this.KeyboardState.GetKeyState(Keys.F11) == FezButtonState.Pressed)
     this.TimeService.SetHour(20, true);
   if (this.KeyboardState.GetKeyState(Keys.F12) == FezButtonState.Pressed)
     this.TimeService.SetHour(0, true);
   if (this.KeyboardState.GetKeyState(Keys.NumPad0) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D0) == FezButtonState.Pressed)
     this.CameraManager.PixelsPerTrixel = 1f;
   if (this.KeyboardState.GetKeyState(Keys.NumPad1) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D1) == FezButtonState.Pressed)
     this.CameraManager.PixelsPerTrixel = 2f;
   if (this.KeyboardState.GetKeyState(Keys.NumPad2) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D2) == FezButtonState.Pressed)
     this.CameraManager.PixelsPerTrixel = 3f;
   if (this.KeyboardState.GetKeyState(Keys.NumPad3) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D3) == FezButtonState.Pressed)
     this.CameraManager.PixelsPerTrixel = 4f;
   if (this.KeyboardState.GetKeyState(Keys.NumPad5) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D5) == FezButtonState.Pressed)
   {
     ++this.GameState.SaveData.CubeShards;
     this.GameState.SaveData.ScoreDirty = true;
     this.GameState.OnHudElementChanged();
   }
   if ((this.KeyboardState.GetKeyState(Keys.NumPad6) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D6) == FezButtonState.Pressed) && this.GameState.SaveData.CubeShards > 0)
   {
     --this.GameState.SaveData.CubeShards;
     this.GameState.SaveData.ScoreDirty = true;
     this.GameState.OnHudElementChanged();
   }
   if (this.KeyboardState.GetKeyState(Keys.NumPad7) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D7) == FezButtonState.Pressed)
   {
     ++this.GameState.SaveData.Keys;
     this.GameState.OnHudElementChanged();
   }
   if ((this.KeyboardState.GetKeyState(Keys.NumPad8) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D8) == FezButtonState.Pressed) && this.GameState.SaveData.Keys > 0)
   {
     --this.GameState.SaveData.Keys;
     this.GameState.OnHudElementChanged();
   }
   if (this.KeyboardState.GetKeyState(Keys.NumPad9) == FezButtonState.Pressed || this.KeyboardState.GetKeyState(Keys.D9) == FezButtonState.Pressed)
   {
     ++this.GameState.SaveData.SecretCubes;
     this.GameState.SaveData.ScoreDirty = true;
     this.GameState.OnHudElementChanged();
   }
   if (this.KeyboardState.GetKeyState(Keys.L) == FezButtonState.Pressed)
     this.GameState.SaveData.HasDoneHeartReboot = true;
   if (FezButtonStateExtensions.IsDown(this.KeyboardState.GetKeyState(Keys.LeftControl)) && this.KeyboardState.GetKeyState(Keys.S) == FezButtonState.Pressed)
   {
     this.GameState.SaveData.IsNew = false;
     this.GameState.Save();
   }
   if (this.KeyboardState.GetKeyState(Keys.H) == FezButtonState.Pressed)
     this.BlackHoles.EnableAll();
   if (this.KeyboardState.GetKeyState(Keys.J) == FezButtonState.Pressed)
     this.BlackHoles.DisableAll();
   if (this.KeyboardState.GetKeyState(Keys.K) == FezButtonState.Pressed)
     this.BlackHoles.Randomize();
   if (!Fez.LongScreenshot)
     return;
   if (this.KeyboardState.GetKeyState(Keys.R) == FezButtonState.Pressed)
   {
     this.SM.PlayNewSong((string) null);
     this.GameState.HideHUD = true;
     this.PlayerManager.Action = ActionType.StandWinking;
     this.CameraManager.ChangeViewpoint(FezMath.GetRotatedView(this.CameraManager.Viewpoint, Fez.DoubleRotations ? 2 : 1));
   }
   if (this.KeyboardState.GetKeyState(Keys.T) != FezButtonState.Pressed)
     return;
   // ISSUE: object of a compiler-generated type is created
   // ISSUE: variable of a compiler-generated type
   DebugControls.\u003C\u003Ec__DisplayClass5 cDisplayClass5_1 = new DebugControls.\u003C\u003Ec__DisplayClass5();
   // ISSUE: reference to a compiler-generated field
   cDisplayClass5_1.\u003C\u003E4__this = this;
   this.SM.KillSounds(0.1f);
   this.SM.PlayNewSong((string) null, 0.1f);
   foreach (AmbienceTrack ambienceTrack in (IEnumerable<AmbienceTrack>) this.LevelManager.AmbienceTracks)
     this.SM.MuteAmbience(ambienceTrack.Name, 0.1f);
   if (this.pl != null)
     ServiceHelper.RemoveComponent<PolytronLogo>(this.pl);
   DebugControls debugControls = this;
   PolytronLogo polytronLogo1 = new PolytronLogo(this.Game);
   polytronLogo1.DrawOrder = 10000;
   polytronLogo1.Opacity = 1f;
   PolytronLogo polytronLogo2 = polytronLogo1;
   debugControls.pl = polytronLogo2;
   ServiceHelper.AddComponent((IGameComponent) this.pl);
   // ISSUE: variable of a compiler-generated type
   DebugControls.\u003C\u003Ec__DisplayClass5 cDisplayClass5_2 = cDisplayClass5_1;
   LogoRenderer logoRenderer1 = new LogoRenderer(this.Game);
   logoRenderer1.DrawOrder = 9999;
   logoRenderer1.Visible = false;
   logoRenderer1.Enabled = false;
   LogoRenderer logoRenderer2 = logoRenderer1;
   // ISSUE: reference to a compiler-generated field
   cDisplayClass5_2.tl = logoRenderer2;
   // ISSUE: reference to a compiler-generated field
   ServiceHelper.AddComponent((IGameComponent) cDisplayClass5_1.tl);
   // ISSUE: reference to a compiler-generated field
   ServiceHelper.AddComponent((IGameComponent) (cDisplayClass5_1.FezLogo = new FezLogo(this.Game)));
   SoundEffect soundEffect = this.CMProvider.Global.Load<SoundEffect>("Sounds/Intro/LogoZoom");
   // ISSUE: reference to a compiler-generated field
   cDisplayClass5_1.FezLogo.Visible = true;
   // ISSUE: reference to a compiler-generated field
   cDisplayClass5_1.FezLogo.Enabled = true;
   // ISSUE: reference to a compiler-generated field
   cDisplayClass5_1.FezLogo.TransitionStarted = true;
   // ISSUE: reference to a compiler-generated field
   cDisplayClass5_1.FezLogo.Opacity = 1f;
   // ISSUE: reference to a compiler-generated field
   cDisplayClass5_1.FezLogo.Inverted = true;
   // ISSUE: reference to a compiler-generated field
   cDisplayClass5_1.FezLogo.SinceStarted = 4.5f;
   // ISSUE: reference to a compiler-generated field
   cDisplayClass5_1.FezLogo.HalfSpeed = true;
   // ISSUE: reference to a compiler-generated field
   cDisplayClass5_1.FezLogo.Update(new GameTime());
   SoundEffectExtensions.Emit(soundEffect);
   SoundManager.NoMoreSounds = true;
   this.GameState.SkipRendering = true;
   // ISSUE: reference to a compiler-generated method
   Waiters.Wait(7.0, new Action(cDisplayClass5_1.\u003CUpdate\u003Eb__2));
 }