/[projectaxis]/projectaxis/IsoEngine/TileEngineTest.cpp
ViewVC logotype

Diff of /projectaxis/IsoEngine/TileEngineTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by vovansim, Wed May 28 01:38:54 2003 UTC revision 1.2 by vovansim, Wed May 28 01:41:59 2003 UTC
# Line 147  void programLoop() { Line 147  void programLoop() {
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);
# Line 163  void programLoop() { Line 161  void programLoop() {
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;
# Line 201  void renderMap() { Line 199  void renderMap() {
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    }    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26