|
@ -19,7 +19,7 @@ public class Map { |
|
|
"wwwwwww.wwwwwewwewwwww.wwwwwww", |
|
|
"wwwwwww.wwwwwewwewwwww.wwwwwww", |
|
|
"wwwwwww.wwwwwewwewwwww.wwwwwww", |
|
|
"wwwwwww.wwwwwewwewwwww.wwwwwww", |
|
|
"wwwwwww.wweeeeeeeeeeww.wwwwwww", |
|
|
"wwwwwww.wweeeeeeeeeeww.wwwwwww", |
|
|
"wwwwwww.wwewwwwwwwweww.wwwwwww", |
|
|
|
|
|
|
|
|
"wwwwwww.wwewwweewwweww.wwwwwww", |
|
|
"wwwwwww.wweweeeeeeweww.wwwwwww", |
|
|
"wwwwwww.wweweeeeeeweww.wwwwwww", |
|
|
"Teeeeee.eeew804629weee.eeeeeet", |
|
|
"Teeeeee.eeew804629weee.eeeeeet", |
|
|
"wwwwwww.wwewe1573eweww.wwwwwww", |
|
|
"wwwwwww.wwewe1573eweww.wwwwwww", |
|
@ -162,10 +162,9 @@ public class Map { |
|
|
|
|
|
|
|
|
for(int x = 0; x < size.x; x++) { |
|
|
for(int x = 0; x < size.x; x++) { |
|
|
for(int y = 0; y < size.y; y++) { |
|
|
for(int y = 0; y < size.y; y++) { |
|
|
|
|
|
|
|
|
if(tempMap[x][y] == 'e') { |
|
|
|
|
|
|
|
|
|
|
|
Vector2 pos = new Vector2(x,y); |
|
|
Vector2 pos = new Vector2(x,y); |
|
|
|
|
|
if(tempMap[x][y] == 'e' && (pos.Add(new Vector2(-1,-1))).isWithin(size.Add(new Vector2(-2,-2)))) { |
|
|
|
|
|
|
|
|
char newChar = 'x'; |
|
|
char newChar = 'x'; |
|
|
|
|
|
|
|
|
if(targetChars.indexOf(tempMap[x + 1][y]) >= 0) { |
|
|
if(targetChars.indexOf(tempMap[x + 1][y]) >= 0) { |
|
|