Exemple #1
0
 public void Initialize(Texture2D texture, Texture2D megaTexture, GraphicsDevice Graphics, ContentManager content, abilityManager abilities, EnemyDeathManager zombieDeath, SFX soundEffects)
 {
     Shurikens              = new List <shuriken>();
     megaShurikens          = new List <megaShuriken>();
     previousLaserSpawnTime = TimeSpan.Zero;
     shurTexture            = texture;
     megaShurTexture        = megaTexture;
     this.zombieDeath       = zombieDeath;
     this.abilities         = abilities;
     MegaSize          = false;
     this.soundEffects = soundEffects;
     //graphicsInfo.X = Graphics.Viewport.Width;
     // graphicsInfo.Y = Graphics.Viewport.Height;
 }
Exemple #2
0
 public void Initialize(GraphicsDeviceManager graphics, GraphicsDevice details)
 {
     this.graphics = graphics;
     this.details  = details;
     //camera = new Camera(details.Viewport);
     castletile    = new CastleTile();
     abilities     = new abilityManager();
     isGameOver    = false;
     zombiesDeath  = new EnemyDeathManager();
     shur          = new shurikenManager();
     zombies       = new EnemyManager();
     soundEffects  = new SFX();
     firstCutscene = true;
     finalCutscene = false;
     ayoub         = new lord(new Vector2(800, 50));
 }
Exemple #3
0
        public void Initialize(GraphicsDeviceManager graphics, GraphicsDevice details)
        {
            this.graphics = graphics;
            this.details  = details;

            clouds           = new FogLvl2();
            backClouds       = new FogLvl2();
            mountains        = new mountainMap();
            healthbar        = new HealthBar();
            abilitiesManager = new abilityManager();
            zombieDeath      = new EnemyDeathManager();
            zombies          = new EnemyManager();
            shur             = new shurikenManager();
            styraxTheHero    = new Hero(new Vector2(1192.148f, 1409.602f));
            isGameOver       = false;
            levelHasFinished = false;
            startCutscene    = false;
            endGamePos       = new Vector2(1190f, 88.67671f);
        }