Package dwlab.shapes.maps.tilemaps

Examples of dwlab.shapes.maps.tilemaps.TileMap.draw()


    clearScreen();
    doubleMap.extractTo( tileMap, 0.5d, 1d, filledTileNum );
    Project.printText( "Step 4: setting tiles number of tilemap to FilledTileNum" );
    Project.printText( "if corresponding value of Double map is higher than 0.5", 1 );
    tileMap.draw();
    drawSignature();
    swapBuffers();
    waitForKey();

    clearScreen();
View Full Code Here


      for( int x = 0; x < mapSize; x++ ) {
        fix( tileMap, x, y );
      }
    }
    printText( "Step 5: preparing tilemap by fixing some unmanaged cell positions" );
    tileMap.draw();
    drawSignature();
    swapBuffers();
    waitForKey();

    clearScreen();
View Full Code Here

    waitForKey();

    clearScreen();
    tileMap.enframe();
    printText( "Step 6a: enframing tile map" );
    tileMap.draw();
    drawSignature();
    swapBuffers();
    waitForKey();

    clearScreen();
View Full Code Here

    clearScreen();
    TileSet.prolongTiles = false;
    tileMap.enframe() ;
    printText( "Step 6b: enframing tile map with prolonging tiles off" );
    tileMap.draw();
    drawSignature();
    swapBuffers();
    waitForKey();

View Full Code Here

      }
    }

    for( int n = 1; n <= 3; n++ ) {
      clearScreen();
      tileMap.draw();
      printText( "Press any Key to stretch tilemap by 2 times" );
      printText( "Stretch example", Align.TO_CENTER, Align.TO_BOTTOM );
      swapBuffers();
      waitForKey();
      tileMap.stretch( 2, 2 );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.