Exemplo n.º 1
0
        protected override void Draw(GameTime gameTime)
        {
            simulator.Draw(new Rectangle(0, 0, graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight));

            mouse.Draw(spriteBatch);

            base.Draw(gameTime);
        }
Exemplo n.º 2
0
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Textures[1] = Background;
            simulator.Draw(new Rectangle(0, 0, simulator.Width * scale, simulator.Height * scale));

            //uncomment to show debug
            //spriteBatch.Begin();
            //spriteBatch.Draw(simulator.TargetField, Vector2.UnitY * simulator.Height, Color.White);
            //spriteBatch.Draw(simulator.TargetTemp, Vector2.UnitY * simulator.Height * 2, Color.White);
            //spriteBatch.End();

            base.Draw(gameTime);
        }