Ejemplo n.º 1
0
 public Map(Wall levelWall,int numberColumns,int numberLines)
 {
     this._numberColumns = numberColumns;
     this._numberLines = numberLines;
     this._levelWall = levelWall;
     this._levelFood = InitialiazeFood();
 }
Ejemplo n.º 2
0
        public Game(int currentLevel)
        {
            this._currentLevel = currentLevel;
            this._numberLevels = ConsiderNumberLevels();

            Level.Level LevelInfo = new Level.Level();
            LevelInfo = ReadNewLevelOnFile();

            _pacMan = new PacMan(LevelInfo.pacMan);
            Wall levelWall = new Wall();
            levelWall.WallCordinate = LevelInfo.wall;
            this._map = new Map(levelWall, LevelInfo.numberColumns, LevelInfo.numberLines);
            this._pacMan = new PacMan(LevelInfo.pacMan);
            EnemyArtificialIntelligence _enemyAI = new EnemyArtificialIntelligence(_map.LevelFood.FoodCoordinates);
            this._enemys = new Enemys(LevelInfo.enemys, _enemyAI);
            _enemyTimer = new Timer(MakeMoveEnemy, null, 0, GameSettings.EnemySpeed);
        }