Esempio n. 1
0
        public override void Draw(GameTime gameTime)
        {
            Camera.Begin(SpriteSortMode.Immediate, null, SamplerState.LinearClamp, null, null);
            Camera.Draw(Game.GenericTexture, new Rectangle(0, 0, 1320, 720), Color.Black * BackBufferOpacity);
            m_levelUpBGImage.Draw(Camera);
            var levelUpParticles = m_levelUpParticles;

            for (var i = 0; i < levelUpParticles.Length; i++)
            {
                var spriteObj = levelUpParticles[i];
                spriteObj.Draw(Camera);
            }
            m_itemFoundSprite.Draw(Camera);
            m_itemFoundText.Draw(Camera);
            m_tripStat1FoundText.Draw(Camera);
            m_tripStat2FoundText.Draw(Camera);
            Camera.GraphicsDevice.SamplerStates[0] = SamplerState.PointClamp;
            m_itemSprite.Draw(Camera);
            m_tripStat1.Draw(Camera);
            m_tripStat2.Draw(Camera);
            Camera.GraphicsDevice.SamplerStates[0] = SamplerState.LinearClamp;
            m_continueText.Draw(Camera);
            Camera.End();
            base.Draw(gameTime);
        }
Esempio n. 2
0
 public override void Draw(GameTime gameTime)
 {
     Camera.Begin();
     Camera.Draw(Game.GenericTexture, new Rectangle(0, 0, 1320, 720), Color.Black * BackBufferOpacity);
     m_blacksmithUI.Draw(Camera);
     m_selectionIcon.Draw(Camera);
     m_textInfoTitleContainer.Draw(Camera);
     m_textInfoStatContainer.Draw(Camera);
     m_textInfoStatModContainer.Draw(Camera);
     m_addPropertiesTitleText.Draw(Camera);
     m_addPropertiesText.Draw(Camera);
     m_unlockCostContainer.Draw(Camera);
     m_equipmentTitleText.Draw(Camera);
     foreach (var current in m_masterIconArray)
     {
         for (var i = 0; i < current.Length; i++)
         {
             current[i].Draw(Camera);
         }
     }
     m_navigationText.Draw(Camera);
     m_cancelText.Draw(Camera);
     m_confirmText.Draw(Camera);
     m_equippedIcon.Draw(Camera);
     foreach (var current2 in m_newIconList)
     {
         current2.Draw(Camera);
     }
     Camera.End();
     base.Draw(gameTime);
 }
Esempio n. 3
0
 public override void Draw(GameTime gameTime)
 {
     Camera.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.PointClamp, null, null, null,
                  Camera.GetTransformation());
     Camera.Draw(Game.GenericTexture,
                 new Rectangle((int)Camera.TopLeftCorner.X - 10, (int)Camera.TopLeftCorner.Y - 10, 1420, 820),
                 Color.Black * BackBufferOpacity);
     foreach (var current in m_enemyList)
     {
         current.Draw(Camera);
     }
     m_playerFrame.Draw(Camera);
     m_player.Draw(Camera);
     if (m_playerGhost.Opacity > 0f)
     {
         m_playerGhost.X += (float)Math.Sin(Game.TotalGameTime * 5f) * 60f *
                            (float)gameTime.ElapsedGameTime.TotalSeconds;
     }
     m_playerGhost.Draw(Camera);
     Camera.End();
     Camera.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearClamp, null, null, null);
     m_spotlight.Draw(Camera);
     m_dialoguePlate.Draw(Camera);
     m_continueText.Draw(Camera);
     Camera.End();
     base.Draw(gameTime);
 }
Esempio n. 4
0
 public override void Draw(GameTime gameTime)
 {
     Camera.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, null, null);
     m_mapDisplay.DrawRenderTargets(Camera);
     Camera.End();
     Camera.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.PointClamp, null, null);
     Camera.GraphicsDevice.SetRenderTarget(Game.ScreenManager.RenderTarget);
     Camera.GraphicsDevice.Clear(Color.Black);
     Camera.Draw((ScreenManager as RCScreenManager).GetLevelScreen().RenderTarget, Vector2.Zero, Color.White * 0.3f);
     m_mapDisplay.Draw(Camera);
     if (IsTeleporter && m_teleporterList.Length > 0)
     {
         m_titleText.Draw(Camera);
         var spriteObj = m_teleporterList[m_selectedTeleporter];
         m_playerIcon.Position = new Vector2(spriteObj.X + 14f, spriteObj.Y - 20f);
         m_playerIcon.Draw(Camera);
     }
     if (!IsTeleporter)
     {
         m_recentreText.Draw(Camera);
         m_navigationText.Draw(Camera);
     }
     if (!IsTeleporter && (Game.PlayerStats.Traits.X == 11f || Game.PlayerStats.Traits.Y == 11f))
     {
         m_alzheimersQuestionMarks.Draw(Camera);
     }
     m_continueText.Draw(Camera);
     m_legend.Draw(Camera);
     Camera.End();
     base.Draw(gameTime);
 }
Esempio n. 5
0
 public override void Draw(Camera2D camera)
 {
     base.Draw(camera);
     m_king.Draw(camera);
     m_tutorialText.Position = Game.ScreenManager.Camera.Position;
     m_tutorialText.Y       -= 200f;
     camera.GraphicsDevice.SamplerStates[0] = SamplerState.LinearClamp;
     m_tutorialText.Draw(camera);
     camera.GraphicsDevice.SamplerStates[0] = SamplerState.PointClamp;
 }
Esempio n. 6
0
 public override void Draw(Camera2D camera)
 {
     m_continueText.Position = new Vector2(camera.Bounds.Right - 50, camera.Bounds.Bottom - 70);
     m_endingMask.Position   = camera.Position - new Vector2(660f, 360f);
     m_endingMask.Draw(camera);
     if (camera.X > m_background.X + 6600f)
     {
         m_background.X = camera.X;
     }
     if (camera.X < m_background.X)
     {
         m_background.X = camera.X - 1320f;
     }
     m_background.Draw(camera);
     foreach (var current in m_frameList)
     {
         current.Draw(camera);
     }
     foreach (var current2 in m_plaqueList)
     {
         current2.Draw(camera);
     }
     base.Draw(camera);
     camera.End();
     if (!LevelEV.SHOW_ENEMY_RADII)
     {
         camera.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearClamp, null, null, null,
                      camera.GetTransformation());
     }
     else
     {
         camera.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearClamp, null, null, null,
                      camera.GetTransformation());
     }
     foreach (var current3 in m_nameList)
     {
         current3.Draw(camera);
     }
     foreach (var current4 in m_slainCountText)
     {
         current4.Draw(camera);
     }
     m_continueText.Draw(camera);
     camera.End();
     if (!LevelEV.SHOW_ENEMY_RADII)
     {
         camera.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointWrap, null, null, null,
                      camera.GetTransformation());
         return;
     }
     camera.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointWrap, null, null, null,
                  camera.GetTransformation());
 }
Esempio n. 7
0
 public override void Draw(GameTime gametime)
 {
     Camera.Begin();
     Camera.Draw(Game.GenericTexture, new Rectangle(0, 0, 1320, 720), Color.Black * BackBufferOpacity);
     m_title.Draw(Camera);
     m_slot1Container.Draw(Camera);
     m_slot2Container.Draw(Camera);
     m_slot3Container.Draw(Camera);
     m_confirmText.Draw(Camera);
     m_cancelText.Draw(Camera);
     m_navigationText.Draw(Camera);
     m_deleteProfileText.Draw(Camera);
     Camera.End();
     base.Draw(gametime);
 }
Esempio n. 8
0
 public override void Draw(GameTime gametime)
 {
     Camera.Begin();
     Camera.Draw(Game.GenericTexture, new Rectangle(0, 0, 1320, 720), Color.Black * BackBufferOpacity);
     m_bgSprite.Draw(Camera);
     foreach (var current in m_optionsArray)
     {
         current.Draw(Camera);
     }
     m_quickDropText.Draw(Camera);
     m_confirmText.Draw(Camera);
     m_cancelText.Draw(Camera);
     m_navigationText.Draw(Camera);
     m_optionsBar.Draw(Camera);
     Camera.End();
     base.Draw(gametime);
 }
Esempio n. 9
0
        public override void Draw(Camera2D camera)
        {
            var topLeftCorner = Game.ScreenManager.Camera.TopLeftCorner;

            m_creditsTitleText.Position = new Vector2(topLeftCorner.X + m_creditsPosition.X,
                                                      topLeftCorner.Y + m_creditsPosition.Y);
            m_creditsText.Position = m_creditsTitleText.Position;
            m_creditsText.Y       += 35f;
            m_creditsTitleText.X  += 5f;
            base.Draw(camera);
            m_tutorialText.Position = Game.ScreenManager.Camera.Position;
            m_tutorialText.Y       -= 200f;
            camera.GraphicsDevice.SamplerStates[0] = SamplerState.LinearClamp;
            m_tutorialText.Draw(camera);
            m_creditsText.Draw(camera);
            m_creditsTitleText.Draw(camera);
            camera.GraphicsDevice.SamplerStates[0] = SamplerState.PointClamp;
        }
Esempio n. 10
0
        public override void Draw(GameTime gameTime)
        {
            m_cloud1.Y = (m_cloud2.Y = (m_cloud3.Y = (m_cloud4.Y = (m_cloud5.Y = Camera.TopLeftCorner.Y * 0.2f))));
            m_bg.Y     = Camera.TopLeftCorner.Y * 0.2f;
            Camera.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.LinearClamp, null, null, null,
                         Camera.GetTransformation());
            m_bg.Draw(Camera);
            m_cloud1.Draw(Camera);
            m_cloud2.Draw(Camera);
            m_cloud3.Draw(Camera);
            m_cloud4.Draw(Camera);
            m_cloud5.Draw(Camera);
            Camera.GraphicsDevice.SamplerStates[0] = SamplerState.PointClamp;
            m_manor.Draw(Camera);
            m_impactEffectPool.Draw(Camera);
            Camera.GraphicsDevice.SamplerStates[0] = SamplerState.LinearClamp;
            m_selectionIcon.Draw(Camera);
            var skillArray = SkillSystem.GetSkillArray();

            for (var i = 0; i < skillArray.Length; i++)
            {
                var skillObj = skillArray[i];
                if (skillObj.TraitType != SkillType.Filler && skillObj.TraitType != SkillType.Null && skillObj.Visible)
                {
                    skillObj.Draw(Camera);
                }
            }
            Camera.End();
            Camera.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.LinearClamp, null, null);
            m_dialoguePlate.Draw(Camera);
            m_continueText.Draw(Camera);
            m_toggleIconsText.Draw(Camera);
            m_confirmText.Draw(Camera);
            m_navigationText.Draw(Camera);
            m_playerMoney.Draw(Camera);
            Camera.GraphicsDevice.SamplerStates[0] = SamplerState.PointClamp;
            m_descriptionDivider.Draw(Camera);
            m_coinIcon.Draw(Camera);
            Camera.End();
            base.Draw(gameTime);
        }
Esempio n. 11
0
 public override void Draw(GameTime gameTime)
 {
     if (Camera.X > m_background.X + 6600f)
     {
         m_background.X = Camera.X;
     }
     if (Camera.X < m_background.X)
     {
         m_background.X = Camera.X - 1320f;
     }
     Camera.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearWrap, null, null, null,
                  Camera.GetTransformation());
     m_background.Draw(Camera);
     Camera.End();
     Camera.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, null, null, null,
                  Camera.GetTransformation());
     foreach (var current in m_masterArray)
     {
         current.Draw(Camera);
     }
     foreach (var current2 in m_currentBranchArray)
     {
         current2.Draw(Camera);
     }
     Camera.End();
     if (Camera.Zoom >= 1f)
     {
         Camera.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearClamp, null, null, null);
         m_bgShadow.Draw(Camera);
         m_titleText.Draw(Camera);
         m_confirmText.Draw(Camera);
         m_navigationText.Draw(Camera);
         m_rerollText.Draw(Camera);
         m_descriptionPlate.Draw(Camera);
         Camera.End();
     }
     base.Draw(gameTime);
 }
Esempio n. 12
0
 public override void Draw(GameTime gametime)
 {
     m_playerHUD.SetPosition(new Vector2(m_frontCard.X + 46f, m_frontCard.Y + 64f));
     Camera.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.LinearClamp, null, null);
     Camera.Draw(Game.GenericTexture, new Rectangle(0, 0, 1320, 720), Color.Black * BackBufferOpacity);
     m_frontCard.Draw(Camera);
     m_backCard.Draw(Camera);
     m_cancelText.Draw(Camera);
     Camera.GraphicsDevice.SamplerStates[0] = SamplerState.PointClamp;
     if (Game.PlayerStats.IsDead)
     {
         m_tombStoneSprite.Position = new Vector2(m_frontCard.X + 240f, m_frontCard.Y + 280f);
         m_tombStoneSprite.Draw(Camera);
     }
     else
     {
         if (m_playerInAir)
         {
             m_playerSprite.Position = new Vector2(m_frontCard.X + 180f, m_frontCard.Y + 202f);
         }
         else
         {
             m_playerSprite.Position = new Vector2(m_frontCard.X + 160f,
                                                   m_frontCard.Y + 280f - (m_playerSprite.Bounds.Bottom - m_playerSprite.Y));
         }
         m_playerSprite.Draw(Camera);
         Game.ColourSwapShader.Parameters["desiredTint"].SetValue(
             m_playerSprite.GetChildAt(12).TextureColor.ToVector4());
         if (Game.PlayerStats.Class == 7 || Game.PlayerStats.Class == 15)
         {
             Game.ColourSwapShader.Parameters["Opacity"].SetValue(m_playerSprite.Opacity);
             Game.ColourSwapShader.Parameters["ColourSwappedOut1"].SetValue(m_skinColour1.ToVector4());
             Game.ColourSwapShader.Parameters["ColourSwappedIn1"].SetValue(m_lichColour1.ToVector4());
             Game.ColourSwapShader.Parameters["ColourSwappedOut2"].SetValue(m_skinColour2.ToVector4());
             Game.ColourSwapShader.Parameters["ColourSwappedIn2"].SetValue(m_lichColour2.ToVector4());
         }
         else if (Game.PlayerStats.Class == 3 || Game.PlayerStats.Class == 11)
         {
             Game.ColourSwapShader.Parameters["Opacity"].SetValue(m_playerSprite.Opacity);
             Game.ColourSwapShader.Parameters["ColourSwappedOut1"].SetValue(m_skinColour1.ToVector4());
             Game.ColourSwapShader.Parameters["ColourSwappedIn1"].SetValue(Color.Black.ToVector4());
             Game.ColourSwapShader.Parameters["ColourSwappedOut2"].SetValue(m_skinColour2.ToVector4());
             Game.ColourSwapShader.Parameters["ColourSwappedIn2"].SetValue(Color.Black.ToVector4());
         }
         else
         {
             Game.ColourSwapShader.Parameters["Opacity"].SetValue(1);
             Game.ColourSwapShader.Parameters["ColourSwappedOut1"].SetValue(m_skinColour1.ToVector4());
             Game.ColourSwapShader.Parameters["ColourSwappedIn1"].SetValue(m_skinColour1.ToVector4());
             Game.ColourSwapShader.Parameters["ColourSwappedOut2"].SetValue(m_skinColour2.ToVector4());
             Game.ColourSwapShader.Parameters["ColourSwappedIn2"].SetValue(m_skinColour2.ToVector4());
         }
         Camera.End();
         Camera.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.PointClamp, null, null,
                      Game.ColourSwapShader);
         m_playerSprite.GetChildAt(12).Draw(Camera);
         Camera.End();
         Camera.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.PointClamp, null, null, null);
         if (Game.PlayerStats.IsFemale)
         {
             m_playerSprite.GetChildAt(13).Draw(Camera);
         }
         m_playerSprite.GetChildAt(15).Draw(Camera);
     }
     m_spellIcon.Position = new Vector2(m_frontCard.X + 380f, m_frontCard.Y + 320f);
     m_spellIcon.Draw(Camera);
     Camera.End();
     base.Draw(gametime);
 }
Esempio n. 13
0
 public override void Draw(GameTime gameTime)
 {
     Camera.GraphicsDevice.SetRenderTarget(m_godRayTexture);
     Camera.GraphicsDevice.Clear(Color.White);
     Camera.Begin(SpriteSortMode.Immediate, BlendState.NonPremultiplied, SamplerState.LinearClamp, null, null);
     m_smallCloud1.DrawOutline(Camera);
     m_smallCloud3.DrawOutline(Camera);
     m_smallCloud4.DrawOutline(Camera);
     Camera.GraphicsDevice.SamplerStates[0] = SamplerState.PointClamp;
     m_castle.DrawOutline(Camera);
     Camera.GraphicsDevice.SamplerStates[0] = SamplerState.LinearClamp;
     m_smallCloud2.DrawOutline(Camera);
     m_smallCloud5.DrawOutline(Camera);
     m_logo.DrawOutline(Camera);
     m_dlcIcon.DrawOutline(Camera);
     m_crown.DrawOutline(Camera);
     Camera.End();
     m_ppm.Draw(gameTime, m_godRayTexture);
     Camera.GraphicsDevice.SetRenderTarget(m_godRayTexture);
     Camera.GraphicsDevice.Clear(Color.Black);
     Camera.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.LinearClamp, null, null);
     m_bg.Draw(Camera);
     m_smallCloud1.Draw(Camera);
     m_smallCloud3.Draw(Camera);
     m_smallCloud4.Draw(Camera);
     Camera.GraphicsDevice.SamplerStates[0] = SamplerState.PointClamp;
     m_castle.Draw(Camera);
     Camera.GraphicsDevice.SamplerStates[0] = SamplerState.LinearClamp;
     m_smallCloud2.Draw(Camera);
     m_smallCloud5.Draw(Camera);
     m_largeCloud1.Draw(Camera);
     m_largeCloud2.Draw(Camera);
     m_largeCloud3.Draw(Camera);
     m_largeCloud4.Draw(Camera);
     Camera.GraphicsDevice.SamplerStates[0] = SamplerState.PointClamp;
     Camera.Draw(Game.GenericTexture, new Rectangle(-10, -10, 1400, 800), Color.Black * m_hardCoreModeOpacity);
     Camera.GraphicsDevice.SamplerStates[0] = SamplerState.LinearClamp;
     m_logo.Draw(Camera);
     m_crown.Draw(Camera);
     m_copyrightText.Draw(Camera);
     m_versionNumber.Draw(Camera);
     m_pressStartText2.Opacity = m_pressStartText.Opacity;
     m_pressStartText.Draw(Camera);
     m_pressStartText2.Draw(Camera);
     if (!m_startNewLegacy)
     {
         m_profileCardKey.Draw(Camera);
     }
     m_creditsKey.Draw(Camera);
     m_optionsKey.Draw(Camera);
     m_profileSelectKey.Draw(Camera);
     Camera.GraphicsDevice.SamplerStates[0] = SamplerState.PointWrap;
     if (!m_startNewLegacy)
     {
         m_profileCard.Draw(Camera);
     }
     m_dlcIcon.Draw(Camera);
     m_optionsIcon.Draw(Camera);
     m_creditsIcon.Draw(Camera);
     Camera.End();
     Camera.GraphicsDevice.SetRenderTarget((ScreenManager as RCScreenManager).RenderTarget);
     Camera.GraphicsDevice.Clear(Color.Black);
     Camera.Begin(SpriteSortMode.Immediate, BlendState.Additive);
     Camera.Draw(m_ppm.Scene,
                 new Rectangle(0, 0, Camera.GraphicsDevice.Viewport.Width, Camera.GraphicsDevice.Viewport.Height),
                 Color.White);
     Camera.Draw(m_godRayTexture,
                 new Rectangle(0, 0, Camera.GraphicsDevice.Viewport.Width, Camera.GraphicsDevice.Viewport.Height),
                 Color.White);
     Camera.End();
     base.Draw(gameTime);
 }