Exemple #1
0
        public override void Initialize()
        {
            base.Initialize();

            Manager.Scene.AddEntity(new PlayerSignedOut());

            MusicPlayer.Play(MusicPlayer.LevelTheme);

            Manager.Graphics.OffSet = new Vector2(Manager.Graphics.ScreenSafeArea.X, Manager.Graphics.ScreenSafeArea.Y);

            Manager.Graphics.BeginShader();

            GreyInfectiontitleScene background = new GreyInfectiontitleScene();

            Manager.Scene.AddEntity(background);
            background.EnableGlitchColor = false;

            Manager.Scene.AddEntity(new BackBox());

            intro1 = new IntroBox();
            Manager.Scene.AddEntity(intro1);
            intro1.Index        = 1;
            intro1.OnEndTypping = OnEndIntro1;
            intro1.Enabled      = true;
            intro1.Visible      = true;

            intro2 = new IntroBox();
            Manager.Scene.AddEntity(intro2);
            intro2.Index        = 2;
            intro2.OnEndTypping = OnEndIntro2;

            intro3 = new IntroBox();
            Manager.Scene.AddEntity(intro3);
            intro3.Index        = 3;
            intro3.OnEndTypping = OnEndIntro3;

            // Pistas:
            InputHintLabel inputHint = new InputHintLabel();

            Manager.Scene.AddEntity(inputHint);
            inputHint.Button   = InputHintLabel.GamepadButtonChar.A;
            inputHint.Caption  = Session.Strings["button_continue"];
            inputHint.Location = new Vector2(Manager.Graphics.ScreenBounds.Center.X - 40, Manager.Graphics.ScreenSafeArea.Bottom - 14);
            inputHint.ZOrder   = -9999999;

            showIntro     = false;
            showGameInput = false;

            timer = new Timer();
        }
Exemple #2
0
        public override void Initialize()
        {
            base.Initialize();

            Manager.Scene.AddEntity(new PlayerSignedOut());

            MusicPlayer.Play(MusicPlayer.MenuTheme);

            Manager.Graphics.OffSet = Vector2.Zero;
            Manager.Graphics.EndShader();

            GreyInfectiontitleScene background = new GreyInfectiontitleScene();

            Manager.Scene.AddEntity(background);
            background.EnableGlitchColor = false;

            Fog fog = new Fog();

            Manager.Scene.AddEntity(fog);
            fog.ZOrder = -9999998;

            BackBox black = new BackBox();

            Manager.Scene.AddEntity(black);
            black.ZOrder = -9999997;

            alert = new ConditionAlert();
            Manager.Scene.AddEntity(alert);
            alert.EndEvent += ExitAlert;

            // Indicaciones de input:
            InputHintLabel inputHint = new InputHintLabel();

            Manager.Scene.AddEntity(inputHint);
            inputHint.Button   = InputHintLabel.GamepadButtonChar.A;
            inputHint.Caption  = Session.Strings["button_continue"];
            inputHint.Location = new Vector2(Manager.Graphics.ScreenSafeArea.Center.X - 64, Manager.Graphics.ScreenSafeArea.Bottom - 14);
            inputHint.ZOrder   = -999999999;
        }
Exemple #3
0
        public override void Initialize()
        {
            base.Initialize();

            Manager.Scene.AddEntity(new PlayerSignedOut());

            if ((bool)Manager.Vars["creditsFromEndGame"])
            {
                Manager.Graphics.EndShader();
            }
            else
            {
                Manager.Graphics.BeginShader();
            }

            GreyInfectiontitleScene background = new GreyInfectiontitleScene();

            Manager.Scene.AddEntity(background);
            background.EnableGlitchColor = false;

            credits = Serializers.DeserializeFromTitleStorage <List <CreditsEntry> >("GameData/Credits/" + Session.Culture + ".xml");

            Label entry;

            y = 0;

            foreach (CreditsEntry c in credits)
            {
                entry = new Label();
                Manager.Scene.AddEntity(entry);
                entry.SmallFont = false;
                entry.Caption   = c.Title;
                entry.Location  = new Vector2(Manager.Graphics.ScreenBounds.Center.X, y);
                entry.Fixed     = false;
                entry.Center    = true;

                entry = new Label();
                Manager.Scene.AddEntity(entry);
                entry.SmallFont = true;
                entry.Caption   = c.Text;
                entry.Location  = new Vector2(Manager.Graphics.ScreenBounds.Center.X - (entry.Bounds.Width / 2), y + 32);
                entry.Fixed     = false;

                y += 250;
            }

            Fog fog = new Fog();

            Manager.Scene.AddEntity(fog);
            fog.ZOrder = -9999998;

            // Pistas:
            InputHintLabel inputHint = new InputHintLabel();

            Manager.Scene.AddEntity(inputHint);
            inputHint.Button   = (bool)Manager.Vars["creditsFromEndGame"] ? InputHintLabel.GamepadButtonChar.A : InputHintLabel.GamepadButtonChar.B;
            inputHint.Caption  = (bool)Manager.Vars["creditsFromEndGame"] ? Session.Strings["button_continue"] : Session.Strings["button_back"];
            inputHint.Location = new Vector2(Manager.Graphics.ScreenBounds.Center.X - 40, Manager.Graphics.ScreenSafeArea.Bottom - 14);
            inputHint.ZOrder   = -9999999;

            timer  = new Timer();
            offset = 600;

            Manager.Graphics.OffSet = new Vector2(0, offset);
        }