Beispiel #1
0
        public void Draw(SpriteBatch spriteBatch)
        {
            fireEffect.Parameters["time"].SetValue(-Main.GameUpdateCount / 45f);
            fireEffect.Parameters["upscale"].SetValue(Main.GameViewMatrix.ZoomMatrix);
            fireEffect.Parameters["sampleTexture"].SetValue(GetTexture(AssetDirectory.Assets + "FireTrail"));

            chain.DrawStrip(PrepareStrip, fireEffect);
            chain.UpdateChain(parent.npc.Center + position);
            chain.IterateRope(WindForce);
        }
Beispiel #2
0
        private void BannerTarget(GameTime obj)
        {
            var graphics = Main.graphics.GraphicsDevice;

            graphics.SetRenderTarget(vitricBackgroundBannerTarget);
            graphics.Clear(Color.Transparent);

            BackgroundBanner?.DrawStrip(Main.screenPosition + new Vector2(0, 50));

            graphics.SetRenderTarget(null);
        }