147 |
scroller.getAnchor()->y = 0; |
scroller.getAnchor()->y = 0; |
148 |
|
|
149 |
overheadView = false; |
overheadView = false; |
150 |
} |
} else if(keystate[SDLK_4]) { |
|
/* |
|
|
else if(keystate[SDLK_4]) { |
|
151 |
//Set the map type to rectangular: |
//Set the map type to rectangular: |
152 |
tilePlotter.setMapType(ISOMAP_RECTANGULAR); |
tilePlotter.setMapType(ISOMAP_RECTANGULAR); |
153 |
tileWalker.setMapType(ISOMAP_RECTANGULAR); |
tileWalker.setMapType(ISOMAP_RECTANGULAR); |
161 |
scroller.getAnchor()->y = 0; |
scroller.getAnchor()->y = 0; |
162 |
|
|
163 |
overheadView = true; |
overheadView = true; |
164 |
} */ |
} |
165 |
else { |
else { |
166 |
/* Any other key quits the application... */ |
/* Any other key quits the application... */ |
167 |
done = true; |
done = true; |
199 |
|
|
200 |
//Plot tile: |
//Plot tile: |
201 |
if(overheadView) { |
if(overheadView) { |
202 |
squareTiles.putTile(screen, plotPoint.x, plotPoint.y, theMap[mapPoint.y][mapPoint.x]); |
squareTiles.putTile(screen, plotPoint.x, plotPoint.y, theMap[mapPoint.y][mapPoint.x]%2); |
203 |
} else { |
} else { |
204 |
tiles.putTile(screen, plotPoint.x, plotPoint.y, theMap[mapPoint.y][mapPoint.x]); |
tiles.putTile(screen, plotPoint.x, plotPoint.y, theMap[mapPoint.y][mapPoint.x]); |
205 |
} |
} |
206 |
} |
} |
207 |
} |
} |