diff --git a/Shared/SneakGame.cs b/Shared/SneakGame.cs index 12d2238..1a1ec3e 100644 --- a/Shared/SneakGame.cs +++ b/Shared/SneakGame.cs @@ -166,13 +166,14 @@ namespace SemiColinGames { spriteBatch.Begin(SpriteSortMode.Deferred, null, SamplerState.LinearWrap, null, null); // Draw background. + Color bgBlend = Color.FromNonPremultiplied(new Vector4(1, 1, 1, 0.5f)); Rectangle bgSource = new Rectangle( (int) (camera.Left * 0.25), 0, camera.Width, camera.Height); Rectangle bgTarget = new Rectangle(0, 0, camera.Width, camera.Height); - spriteBatch.Draw(grasslandBg2, bgTarget, bgSource, Color.White); + spriteBatch.Draw(grasslandBg2, bgTarget, bgSource, bgBlend); bgSource = new Rectangle( (int) (camera.Left * 0.5), 0, camera.Width, camera.Height); - spriteBatch.Draw(grasslandBg1, bgTarget, bgSource, Color.White); + spriteBatch.Draw(grasslandBg1, bgTarget, bgSource, bgBlend); spriteBatch.End(); // Set up transformation matrix for drawing world objects. @@ -180,12 +181,12 @@ namespace SemiColinGames { spriteBatch.Begin( SpriteSortMode.Deferred, null, SamplerState.LinearWrap, null, null, null, transform); - // Draw player. - player.Draw(spriteBatch); - // Draw foreground tiles. world.Draw(spriteBatch); + // Draw player. + player.Draw(spriteBatch); + // Aaaaand we're done. spriteBatch.End();