Ejemplo n.º 1
0
        private void InitStage()
        {
            // add tube maze first
              tubeMaze = new TubeMaze( this, -5f, 2.3f );
              ObjectTable.Add( tubeMaze );

              // side boundaries
              float leftBoundX = -.5f * stageWidth;
              FirstRow = lastRowY;
              Boundary boundary = new Boundary( this, leftBoundX, -leftBoundX, FirstRow, rowSpacing );
              ObjectTable.Add( boundary );

              // starting shelves
              Shelves shelves = new Shelves( this );
              ObjectTable.Add( shelves );

              // players
              AddPlayers( shelves );
        }
Ejemplo n.º 2
0
 private void AddPlayers( Shelves shelf )
 {
     for ( int i = 0; i < 4; ++i )
       {
     if ( i < initSlotInfo.Length && initSlotInfo[i].Avatar != null )
     {
       initSlotInfo[i].Avatar.Scale = Player.Size;
       ObjectTable.Add( new Player( this, i, initSlotInfo[i].Player, initSlotInfo[i].Avatar,
                                shelf.GetPlayerPos( i ), initSlotInfo[i].ID ) );
     }
       }
 }