Exemple #1
0
        internal override void Update(GameTime gameTime)
        {
            _playerVisible = GameboyInputs.SelectDown();

            if (!_playerVisible)
            {
                _nestFlickerDelay--;
                if (_nestFlickerDelay == 0)
                {
                    _nestFlickerDelay = NEST_FLICKER_DELAY;
                    _nestsVisible     = !_nestsVisible;
                }
            }

            if (GameboyInputs.APressed() || GameboyInputs.BPressed())
            {
                Close();
            }

            if (GameboyInputs.RightPressed() && _index == 0 && Controller.ActivePlayer.VisitedKanto)
            {
                _index = 1;
                LoadMapEntries();
            }
            else if (GameboyInputs.LeftPressed() && _index == 1)
            {
                _index = 0;
                LoadMapEntries();
            }
        }