Example #1
0
        public override void Draw(GameTime gameTime, StereoEye stereoEye)
        {
            SpriteBatch sb = Game.GetService <SpriteBatch>();

            sb.Begin();
            GameCollection.Draw(sb, Game.GetService <DebugStrings>(), stereoEye);
            if (weHaveAWinner)
            {
                float offsetScale = 0;
                if (stereoEye == StereoEye.Left)
                {
                    offsetScale = -Config.offsetScale * 1.5f;
                }
                if (stereoEye == StereoEye.Right)
                {
                    offsetScale = Config.offsetScale * 1.5f;
                }

                int y = (int)Game.GraphicsDevice.DisplayBounds.Height / 2;
                int x = (int)Game.GraphicsDevice.DisplayBounds.Width / 2;
                sb.Draw(winner, x - 450 - offsetScale, y - 114, 900, 228, GameCollection.Winner.Color);
            }
            sb.End();
            base.Draw(gameTime, stereoEye);
        }
Example #2
0
        public override void Draw(GameTime gameTime, StereoEye stereoEye)
        {
            SpriteBatch sb = Game.GetService <SpriteBatch>();

            sb.Begin();
            gameCollection.Draw(sb, Game.GetService <DebugStrings>(), stereoEye);
            sb.End();
            base.Draw(gameTime, stereoEye);
        }
Example #3
0
 public override void Draw(GameTime gameTime, StereoEye stereoEye)
 {
     //Console.WriteLine(gameTime.ElapsedSec);
     GameCollection.Draw(Game.GetService <SpriteBatch>(), Game.GetService <DebugStrings>());
     base.Draw(gameTime, stereoEye);
 }