public Level(ITSGame game, float minSpanDistance, float maxSpanDistance, int itemsCount, float speed, TimeSpan spawnRate)
        {
            if (itemsCount < 1)
            {
                throw new ArgumentOutOfRangeException(nameof(itemsCount), itemsCount, "must 1 or greater");
            }
            this.minSpanDistance = minSpanDistance;
            this.maxSpanDistance = maxSpanDistance;

            this.collectebelsPool = new Pool(itemsCount, 40);
            this.game             = game;
            this.speed            = speed;
            this.spawnRate        = spawnRate;
        }
Esempio n. 2
0
 public PlayfieldCamController(ITSGame game, int playerIdx)
 {
     this.game = game;
 }