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(); }
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(); }