Example #1
0
        public static void CreateMap(TerrainLayer mgr, int[] pixels)
        {
            int i = 0;

            for (int y = 0; y < mgr.MaxHeight; y++)
            {
                for (int x = 0; x < mgr.MaxWidth; x++, i++)
                {
                    pixels[i] = mgr.GetTileColor(x, y);
                }
            }
        }
Example #2
0
        private static void GetAcre1(int topX, int topY, TerrainLayer t, int[] data)
        {
            int index = 0;

            for (int y = 0; y < 16; y++)
            {
                var yi = y + topY;
                for (int x = 0; x < 16; x++, index++)
                {
                    data[index] = t.GetTileColor(x + topX, yi);
                }
            }
        }