public WaveManager(MapManager masterManager, TowerDefenseGame masterGame, ContentManager content) { this.masterManager = masterManager; this.masterGame = masterGame; this.content = content; waveNumber = 0; timeUntilNextWave = 30; LoadTextures(); DefineWaveList(); this.nextWave = waveList[waveNumber + 1]; }
public GameGUIManager(MapManager masterManager, TowerDefenseGame masterGame, ContentManager content, int yStart, int width) { this.masterGame = masterGame; this.masterManager = masterManager; this.content = content; this.yStart = yStart; this.width = width; guiButtons = new List<Button>(); guiButtons.Add(new MenuButton(masterGame, content.Load<Texture2D>("Menus//Buttons//buttonOptions"), GetRelativeLocationX(width - 100), GetRelativeLocationY(10), 115, 40)); contextButtons = new List<Button>(); this.gold = 75; this.lives = 50; backgroundTexture = content.Load<Texture2D>("GameGUI//gameGUIBackground"); }
public Monster(TowerDefenseGame masterGame, MapManager mapManager, WaveManager waveManager, int health, Texture2D texture, int x, int y) { this.mapManager = mapManager; this.masterGame = masterGame; this.waveManager = waveManager; width = 10; height = 10; this.x = x; this.y = y; this.health = health; this.maxHealth = health; monsterTexture = texture; GetNextDirection(); moveRate = 0.7f; }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); guiFont = Content.Load<SpriteFont>("GameGUI//GUIText"); healthFont = Content.Load<SpriteFont>("Monsters//HealthText"); tileManager = new TileManager(this, Content); menuManager = new MenuManager(this, Content); mapManager = new MapManager(this, Content); // TODO: use this.Content to load your game content here }