Beispiel #1
0
 public LevelConfiguration GetConfiguration(int level)
 {
     return(new LevelConfiguration()
     {
         InitialLevelSlots = InitialLevelSlotParser.Parse("11111\n11111"),
         InvaderSlotXDistance = 120,
         InvaderSlotYDistance = 100,
         InitialYPosition = 400,
     });
 }
Beispiel #2
0
        public LevelConfiguration GetConfiguration(int level)
        {
            var serializable = _levels[level % _levels.Length];

            return(new LevelConfiguration()
            {
                InitialLevelSlots = InitialLevelSlotParser.Parse(serializable.InitialLevelSlots),
                InitialYPosition = serializable.InitialYPosition,
                InvaderSlotXDistance = serializable.InvaderSlotXDistance,
                InvaderSlotYDistance = serializable.InvaderSlotYDistance
            });
        }
Beispiel #3
0
 public InitialLevelSlot[][] Get(int level)
 {
     return(InitialLevelSlotParser.Parse("11111\n11111"));
 }