1 decade ago by ajainvivek
I am trying to add slope collision map .....I am unable to figure how to add the collision map....as i am newbie to this engine.....any sort of help appreciated!!
The collision map code is put below
The collision map code is put below
var collisionMap = {"layerName":"collision","tileSize":32,"imgSrc":"http://nicolahibbert.com/demo/javascript-tile-map-editor/tilemap_32a.png","mapData":[[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[[24,20,18,16,14,13,12,10,9,8,7,7,6,5,4,4,3,3,2,2,1,1,1,1,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,1,1,1,2,2,2,3,3,4,4,5,6,7,7,8,9,10,12,13,14,16,18,21,24],0,0,0,0,0,0,0,0]]}