diff --git a/Resources/Maps/map_000.txt b/Resources/Maps/map_000.txt deleted file mode 100644 index c6fbefd..0000000 --- a/Resources/Maps/map_000.txt +++ /dev/null @@ -1,3 +0,0 @@ -2 2 -E H -H Y diff --git a/Resources/Maps/map_001.txt b/Resources/Maps/map_001.txt index 4c03fdc..c41c4f9 100644 --- a/Resources/Maps/map_001.txt +++ b/Resources/Maps/map_001.txt @@ -3,9 +3,9 @@ E E E H E E E E E E Y R R E H E E E E R E R E R E G E -E R H R R R R R E -H R E H R H E R E +H R E R R R R R E +H R E E R H E R E R R R R R E R R E E B R H E R R H E E E R R R R E E E -E E E E H R R R H +E E H E H R R R H diff --git a/Resources/Maps/map_003.txt b/Resources/Maps/map_003.txt index 5f24c00..f8024b1 100644 --- a/Resources/Maps/map_003.txt +++ b/Resources/Maps/map_003.txt @@ -1,6 +1,6 @@ 13 4 3 0 -E Y R R R H H R R R E E E -H R R H R R R R H R R H E +E Y R R R H H R R H E E E +H R R E R R R R R R R H E E E R E H E R H R E R R G -H R R E E B R R R H E R H +H R R H E B R R R H E R H diff --git a/Resources/Maps/map_004.txt b/Resources/Maps/map_004.txt index 2627a89..db8a1ab 100644 --- a/Resources/Maps/map_004.txt +++ b/Resources/Maps/map_004.txt @@ -3,7 +3,7 @@ Y R R R E H R R R R R E E R E R R E R E H E R H H R R H R R R R R R R E -E E R E E E E R H E R H +E E R E E E E R E E R H E E R R H E H R E E R E E E H R E E R R E H R E E R R R R R R H E R R R diff --git a/main.py b/main.py index 5c6999d..055861e 100644 --- a/main.py +++ b/main.py @@ -39,8 +39,8 @@ i = 0 for y in map.readlines(): for x in y.split(): - y_coord = i % GRID_WIDTH - x_coord = (i - y_coord)//GRID_WIDTH + x_coord = i % GRID_WIDTH + y_coord = (i-x_coord)//GRID_WIDTH yellow, green, blue = [randint(0, HOUSE_CAPACITY // 2), randint( 0, HOUSE_CAPACITY // 2), randint(0, HOUSE_CAPACITY // 2)]