Пример #1
0
 public LevelClass(Game1 game, string fileName)
 {
     MyGame          = game;
     ItemList        = new Collection <IItem>();
     EnemyList       = new Collection <IEnemy>();
     BlockList       = new Collection <IBlock>();
     BackgroundList  = new Collection <IBackground>();
     Reader          = new LevelReader(this, game);
     currentFileName = fileName;
 }
Пример #2
0
 public UnderGroundWorld(Game1 game, ILevel level, string fileName)
 {
     this.MyGame     = game;
     ItemList        = new Collection <IItem>();
     EnemyList       = new Collection <IEnemy>();
     BlockList       = new Collection <IBlock>();
     BackgroundList  = new Collection <IBackground>();
     Reader          = new LevelReader(this, game);
     currentFileName = fileName;
     underLevel      = level;
     Camera.SetPositionZero();
 }