public Wave(int waveNumber, int numOfEnemies, Level level, Texture2D enemyTexture) { this.waveNumber = waveNumber; this.numOfEnemies = numOfEnemies; this.level = level; this.enemyTexture = enemyTexture; }
public Racoon(Texture2D texture, Level level, Vector2 position, float health, int moneyGiven, int speed, int frames, int animations) : base(texture,position,frames,animations) { this.startHealth = health; this.currentHealth = startHealth; this.moneyGiven = moneyGiven; this.speed = speed; this.level = level; }
public Enemy(Level level, Texture2D texture, Vector2 position, float health, int moneyGiven, int speed) : base(texture, position) { this.startHealth = health; this.currentHealth = startHealth; this.moneyGiven = moneyGiven; this.speed = speed; this.level = level; bounds = new Rectangle((int)position.X, (int)position.Y, texture.Width, texture.Height); }
public Player(Level level,Texture2D[] towerTextures,Texture2D[] bulletTextures) { this.level = level; this.towerTextures = towerTextures; this.bulletTextures = bulletTextures; }
//////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Loads all the Content of the Game. /// </summary> /// /// <remarks> Frost, 16.11.2010. </remarks> //////////////////////////////////////////////////////////////////////////////////////////////////// protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); arial = Content.Load<SpriteFont>("Arial"); infoFont = Content.Load<SpriteFont>("Info"); level = Content.Load<Level>("cool"); cursor = Content.Load<Texture2D>("cursor"); bullet = Content.Load<Texture2D>("bullet"); enemy = Content.Load<Texture2D>("enemy"); gui = Content.Load<Texture2D>("gui"); waveButton = Content.Load<Texture2D>("wave button"); waveButtonPressed = Content.Load<Texture2D>("wave button hover"); window = Content.Load<Texture2D>("window"); LoadTowerTextures(); SetUpWaves(); SetUpGui(); //graphics.PreferredBackBufferWidth = level.WidthInPixels + gui.Width; //graphics.PreferredBackBufferHeight = level.HeightInPixels; graphics.PreferredBackBufferWidth = 800; graphics.PreferredBackBufferHeight = 600; //graphics.IsFullScreen = true; graphics.ApplyChanges(); audioEngine = new AudioEngine("Content/xactProject3.xgs"); waveBank = new WaveBank(audioEngine, "Content/myWaveBank.xwb"); soundBank = new SoundBank(audioEngine, "Content/mySoundBank.xsb"); IsMouseVisible = true; }