private async void OnSelect_Pressed()
        {
            AudioSystem.StopAllMusic();

            SaveManager.SaveData.CharacterName = selectedCharacterName;
            var transitionParams =
                new Transitions.TransitionParams(
                    Transitions.TransitionType.ShrinkingCircle, 0.2f);
            await Autoload.Get <Transitions>()
            .ChangeSceneDoubleTransition(WORLD_SCENE_PATH, transitionParams);
        }
Exemple #2
0
        private async void GoToMainMenu()
        {
            goingToMainMenu = true;
            var transitionParams =
                new Transitions.TransitionParams(
                    Transitions.TransitionType.ShrinkingCircle, 0.15f);
            await Autoload.Get <Transitions>()
            .ChangeSceneDoubleTransition(MainMenuScenePath, transitionParams);

            Autoload.Get <PaletteSwap>().Enabled = true;
        }
Exemple #3
0
        private async void GoToCharacterSelector()
        {
            AudioSystem.StopAllMusic();

            _changingScene = true;
            var transitionParams =
                new Transitions.TransitionParams(
                    Transitions.TransitionType.ShrinkingCircle, 0.2f);
            var transitions = Autoload.Get <Transitions>();
            await transitions.ChangeSceneDoubleTransition(CharacterSelectionScenePath,
                                                          transitionParams);
        }
Exemple #4
0
        private async void OnDoorDetection_BodyEntered(KinematicBody2D body)
        {
            if (body.IsInGroup("player"))
            {
                var offset = new Vector2(0, 5);
                SaveManager.SaveData.WorldPosition = _player.Position + offset;

                AudioSystem.PlaySFX(AudioSystem.SFXCollection.GuildHallEnter);
                var transitionParams =
                    new Transitions.TransitionParams(
                        Transitions.TransitionType.ShrinkingCircle, 0.3f);

                await Autoload.Get <Transitions>()
                .ChangeSceneDoubleTransition(GuildHallScenePath, transitionParams);
            }
        }
Exemple #5
0
        private async void GoToCharacterSelector()
        {
            if (!_introSFXPlayed)
            {
                _introSFXPlayer.Stop();
                _introSFXPlayer.QueueFree();

                PlayTitleScreenMusic();
            }

            AudioSystem.PlaySFX(AudioSystem.SFXCollection.TitleScreenKeyPressed);

            _changingScene = true;
            var transitionParams =
                new Transitions.TransitionParams(
                    Transitions.TransitionType.ShrinkingCircle, 0.2f);
            var transitions = Autoload.Get <Transitions>();
            await transitions.ChangeSceneDoubleTransition(CharacterSelectionScenePath,
                                                          transitionParams);
        }