예제 #1
0
        private void _prepareTransition(int transitionEffect)
        {
            if (transitionEffect > -1)
            {
                switch (transitionEffect)
                {
                case TRANSITION_RUMPLE_SWIRL:
                    _transition = new Graphics.CTransitionEffect(Graphics.CTextures.TRANSITION_RUMPLE, 30, 30);
                    break;

                case TRANSITION_FADE_TO_BLACK:
                    _transition = new Graphics.CTransitionEffect(Graphics.CTextures.TRANSITION_FADE_TO_BLACK, 30, 30);
                    break;
                }
            }
        }
예제 #2
0
        public void drawMap()
        {
            if (_currentMap != null)
            {
                _currentMap.draw();
            }

            //draw the transition if it's there
            if (_transition != null)
            {
                _transition.draw((int)CMasterControl.camera._normalizedPosition.X, (int)CMasterControl.camera._normalizedPosition.Y);

                if (_transition.fadeOutComplete)
                {
                    _transition = null;
                    return;
                }

                if (_transition.fadeInComplete)
                {
                    _swapMap();
                }
            }
        }