Esempio n. 1
0
        public void Draw(SpriteBatch spriteBatch)
        {
            if (_useAsDummy)
            {
                return;
            }

            if (_dashCooldown <= 0 && _poseDuration <= 0)
            {
                _playerFallingSpriteSheet.Draw(spriteBatch);
            }

            _playerGameObject.Draw(spriteBatch);
        }
Esempio n. 2
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            _backgroundAudience.Draw(spriteBatch);
            _scrollingBackground.Draw(spriteBatch);

            _fillBarVertical.Draw(spriteBatch);
            _fillBarFlasher.Draw(spriteBatch);
            _fillBarPointer.Draw(spriteBatch);

            _stage.Draw(spriteBatch);
            _winWrestler.Draw(spriteBatch);

            if (_unhinderedTimeToImpact > 0)
            {
                _starSpriteSheetAnimationManager.Draw(spriteBatch);
            }

            switch (_gameState)
            {
            case GameState.IsRunning:
            case GameState.EndStarted:
                _player.Draw(spriteBatch);
                break;

            case GameState.EndAnimations:
                if (_endExplosion.IsAnimationActive)
                {
                    _endExplosion.Draw(spriteBatch);
                }

                if (_hinderedPlayerTimer <= 0)
                {
                    _confetti1.Draw(spriteBatch);
                    _confetti2.Draw(spriteBatch);
                }

                break;

            case GameState.GameOver:
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }

            foreach (Audience audience in _audiences)
            {
                audience.DrawProjectiles(spriteBatch);
            }
        }
Esempio n. 3
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            _backgroundSprite.Draw(spriteBatch);
            _audienceScrolling.Draw(spriteBatch);

            _cinematicBackgroundScroller.Draw(spriteBatch);

            _stage.Draw(spriteBatch);
            _winWrestler.Draw(spriteBatch);
            _starSpriteSheetAnimationManager.Draw(spriteBatch);

            _playerSprite.Draw(spriteBatch);

            foreach (Audience audience in _audiences)
            {
                audience.DrawProjectiles(spriteBatch);
            }
        }