|
|
@ -110,8 +110,8 @@ namespace SemiColinGames { |
|
|
|
Width = worldDesc.AsQueryable().Max(a => a.Length); |
|
|
|
Height = worldDesc.Length; |
|
|
|
Debug.WriteLine("world size: {0}x{1}", Width, Height); |
|
|
|
for (int j = 0; j < Height; j++) { |
|
|
|
for (int i = 0; i < Width; i++) { |
|
|
|
for (int i = 0; i < Width; i++) { |
|
|
|
for (int j = 0; j < Height; j++) { |
|
|
|
Terrain terrain = Terrain.Empty; |
|
|
|
if (i < worldDesc[j].Length) { |
|
|
|
switch (worldDesc[j][i]) { |
|
|
|