Пример #1
0
        public override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);
            AlienGame.GetSpriteBatch().Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp);

            MenuList.Draw(gameTime, AlienGame.GetSpriteBatch());

            AlienGame.GetSpriteBatch().End();
        }
Пример #2
0
        public override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);
            AlienGame.GetSpriteBatch().Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp);

            Entities.Draw(AlienGame.GetSpriteBatch());
            MenuList.Draw(gameTime, AlienGame.GetSpriteBatch());
            _timerText.Text  = $"TIME: {Math.Truncate(_timer)}";
            _alienCount.Text = $"ALIENS: {Entities.Count}";

            AlienGame.GetSpriteBatch().End();
        }