public void Draw(SpriteBatch spriteBatch) { if (userInterface.canPlaceCannonTower || userInterface.canPlaceMagicTower) { Tower tower = new Tower(TextureManager.towerTexture, new Vector2(Mouse.GetState().X, Mouse.GetState().Y)); if (CanPlace(tower)) { tower.SetColor = Color.Green; } else { tower.SetColor = Color.Red; } tower.Draw(spriteBatch); } foreach (Tower t in towers) { t.Draw(spriteBatch); t.DrawTowerRange(spriteBatch); } creepManager.Draw(spriteBatch); projectileManager.Draw(spriteBatch); particleEngine.Draw(spriteBatch); userInterface.Draw(spriteBatch); }
public void Draw(SpriteBatch spriteBatch) { spriteBatch.Draw(TextureManager.background, Vector2.Zero, Color.White); spriteBatch.Draw(TextureManager.pathTexture, Vector2.Zero, Color.White); creepManager.Draw(spriteBatch); towerManager.Draw(spriteBatch); //path.Draw(spriteBatch); //path.DrawPoints(spriteBatch); }