// Texture.. için load islemi burada protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); selectedTower = null; // Menu itemlerinin yuklanmesi Font1 = Content.Load<SpriteFont>("Menu/Font1"); costFont = Content.Load<SpriteFont>("Menu/costFont"); texMenuBack = Content.Load<Texture2D>("Menu/menu-back"); vecMenuBack = new Vector2(620, 0); vecTimerPosition = new Vector2(710, 15); vecLevelPosition = new Vector2(625, 100); menuTowers = new List<Tower>(); Tower standartTower = new Tower(Services, new Vector2(630, 35)); standartTower.IsActive = false; menuTowers.Add(standartTower); Tower fireTower = new FireTower(Services, new Vector2(726, 35)); fireTower.IsActive = false; menuTowers.Add(fireTower); Tower iceTower = new IceTower(Services, new Vector2(662, 35)); iceTower.IsActive = false; menuTowers.Add(iceTower); Tower lightningTower = new LightningTower(Services, new Vector2(694, 35)); lightningTower.IsActive = false; menuTowers.Add(lightningTower); circle = CreateCircle(100); buttonList = new List<Button>(); vecStatPosition = new Vector2(625,220); buttonList.Add(new NextWaveButton(Services, new Vector2(625, 180))); buttonList.Add(new UpgradeTowerButton(Services, new Vector2(625, 350))); buttonList.Add(new SellTowerButton(Services, new Vector2(625, 430))); texGameOver = Content.Load<Texture2D>("game-over"); texDenied = Content.Load<Texture2D>("denied"); // TODO: use this.Content to load your game content here }
public override Tower CreateTowerWithSamePosition() { Tower t = new FireTower(serviceProvider, this.Position); return t; }