TraceRacer.WorldObject.createGates C# (CSharp) Method

createGates() public method

public createGates ( ) : void
return void
        public void createGates()
        {
            gateQueue.Clear();
            int yval = ran.Next(0, TouchPanel.DisplayHeight-107);

            int randomness = ran.Next(10, getGates().Capacity+1);

            //int offset = ran.Next(-1, 2);

            for (int j = 0; j < randomness; j++)
            {
                // TODO MAYBE CHANGE 200 TO VARYING X OVER TIME
                gateQueue.Add(new Gate(game, spriteBatch, 300 * j, 200 + (int)(ran.NextDouble() * 150)));
            }
        }