示例#1
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();
     soundEffects = new SFX();
 }
示例#2
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;
 }
示例#3
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));
 }
示例#4
0
        public void Initialize(GraphicsDeviceManager graphics, GraphicsDevice details)
        {
            this.graphics = graphics;
            this.details  = details;

            map           = new Map();
            maptile       = new mapTile();
            mapwall       = new mapWall();
            bgLayer1      = new Fog();
            styraxTheHero = new Hero(new Vector2(2000, 250));

            abilitiesManager = new abilityManager();
            healthbar        = new HealthBar();
            isGameOver       = false;
            levelHasFinished = false;
            startCutscene    = false;
            endGamePos       = new Vector2(1183, 51);
        }
示例#5
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);
        }