You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require(['jsiso/canvas/Control','jsiso/tile/Field','requirejs/domReady!'],function(CanvasControl,TileField){// RGBA of color to usevartileColor="(158, 154, 255, 1)";// Our Tile MapvartileMap=[[tileColor,0,tileColor,0,tileColor],[tileColor,tileColor,tileColor,0,tileColor],[tileColor,0,tileColor,0,tileColor]]// X & Y drawing position, and tile span to draw varxrange=8;varyrange=8;// use CanvasControl to create a simple canvas elementvarcontext=CanvasControl.create("canvas",600,640,{},"main");// Changed herevartileLayer=newTileField(context,CanvasControl().height,CanvasControl().width);tileLayer.setup({layout: tileMap,isometric: true,// Changed heretileHeight: 50,// Changed heretileWidth: 100// Changed here});// Rotate our entire Map tileLayer.rotate("left");tileLayer.setOffset(200,100);// <======= Added this// Loop through our tiles and draw the map for(i=0;i<xrange;i++){for(j=0;j<yrange;j++){tileLayer.draw(i,j);}}});
http://jsiso.com/tutorials/2015/03/01/creating-a-simple-map-with-jsiso.html?source=true
Having the same issue locally, unsure as to what the problem might be, there are no errors in the console.
The text was updated successfully, but these errors were encountered: