Exemple #1
0
    public void CreateMap(CMap Map)
    {
        Map.Init(100, mBackgroundColor);

        for (int iX = 0; iX < 100; ++iX)
        {
            for (int iY = 0; iY < 100; ++iY)
            {
                Map.mTiles[iX, iY].mTint        = mTileColors[iX, iY];
                Map.mTiles[iX, iY].mWallX.mType = mWallX[iX, iY];
                Map.mTiles[iX, iY].mWallZ.mType = mWallZ[iX, iY];
            }
        }

        Map.GenerateStaticWallCollisions();
        Map.GenerateVisibilitySegments();
    }