Esempio n. 1
0
 public NightmareGameState(Game1 game)
 {
     g     = game;
     Timer = 0;
     this.ScrollableBackground();
     MediaPlayer.Play(g.marioTheme);
     nightmareEnemyList = NightmareEnemyCreator.LoadEnemy();
     objects            = new List <IObject>();
     items             = ItemCreator.LoadItems();
     nightmareZombie   = new List <IZombie>();
     flyingEnemy       = new List <FlyingEnemy>();
     collisionDetector = new NightmareCollisionDetector(g.Character, flyingEnemy, nightmareEnemyList, objects, items, nightmareZombie, g);
 }
Esempio n. 2
0
        public PlayGameState(Game1 game, GraphicsDevice gd)
        {
            g              = game;
            Timer          = 200;
            graphicsDevice = gd;
            MediaPlayer.Play(g.marioTheme);
            //Add list initializations and collision detector initialization
            items       = ItemCreator.LoadItems();
            enemies     = EnemyCreator.LoadEnemy();
            projectiles = new List <IProjectile>();
            objects     = new List <IObject>();

            collisionDetect = new CollisionDetector(g.Character, items, enemies, projectiles, objects, g);
        }