protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); _spriteBatch.Begin(); base.Draw(gameTime); background1.Draw(_spriteBatch); _board.Draw(gameTime); _vortex.Draw(gameTime); for (int i = 0; i < gc.MaxScoreCount; i++) { _coins[i].Draw(gameTime); } foreach (Enemy demon in _demonHorde) { demon.Draw(gameTime); } if (gc.CurrentLevel == 2) { _geryon.Draw(gameTime); _spriteBatch.Draw(_healthTexture, _healthRectangle, Color.White); } _player.Draw(gameTime); WriteInfo(); DrawPauseGame(); _spriteBatch.End(); }
private void DrawLevelState(GameTime gameTime) { mainGame.GraphicsDevice.Clear(Color.White); spriteBatch.Begin(); board.Draw(spriteBatch); stairs.Draw(spriteBatch); vortex.Draw(spriteBatch); darwin.Draw(spriteBatch); firstZombie.Draw(spriteBatch); secondZombie.Draw(spriteBatch); thirdZombie.Draw(spriteBatch); fourthZombie.Draw(spriteBatch); fifthZombie.Draw(spriteBatch); sixthZombie.Draw(spriteBatch); firstSwitch.Draw(spriteBatch); brain.Draw(spriteBatch); zTime.Draw(spriteBatch); potion.Draw(spriteBatch); if (messageMode) { zombieMessage.Draw(spriteBatch, messageFont); darwinMessage.Draw(spriteBatch, messageFont); brainMessage.Draw(spriteBatch, messageFont); //switchMessage.Draw(spriteBatch, messageFont); } foreach (BasicObject a in walls) { spriteBatch.Draw(wallTex, board.getPosition(a.X, a.Y), Color.White); } spriteBatch.DrawString(messageFont, "HUMANITY: ", new Vector2(board.getPosition(zTime.X, zTime.Y).X + board.getSquareWidth() * 3 / 2, board.getPosition(zTime.X, 24).Y), Color.Black); spriteBatch.DrawString(messageFont, "DEATH COUNT: " + mainGame.DEATH_COUNTER.ToString(), new Vector2(board.getPosition(23, 24).X, board.getPosition(23, 24).Y), Color.Black); spriteBatch.End(); }