ajtajt Posted April 20, 2016 Share Posted April 20, 2016 I am doing this tutorial on a mac using a simple python server. http://phaser.io/tutorials/coding-tips-005 It imports the tilemap json on line 55 of this file https://github.com/photonstorm/phaser-coding-tips/blob/master/issue-005/car.html with this.load.tilemap('map', 'assets/maze.json', null, Phaser.Tilemap.TILED_JSON); The json file is here https://github.com/photonstorm/phaser-coding-tips/blob/master/issue-005/assets/maze.json If I edit the values in the data list on line 4 "data":[20, 20, 20, 20, 20, 20, 20, 20 etc... Nothing changes in the map on reload. If I delete the line with data the map still loads the same. If I copy the data line from the second tile map and reload it still shows the first map. Questions 1. How do I change the tile values without opening up the tiled program? 2. What the the list of data do? 3. I would expect to see changes in the map, what is going on here? Link to comment Share on other sites More sharing options...
Rybar Posted April 22, 2016 Share Posted April 22, 2016 did you make sure to do a hard-reload? Clear your browser cache? Changing that map data should certainly have an effect; I suspect the issue is with cached browser data. ajtajt 1 Link to comment Share on other sites More sharing options...
ajtajt Posted April 22, 2016 Author Share Posted April 22, 2016 @ryanmalm Thank you for the reply. That was not the issue, but definitely a plausible candidate and what you said made me realize what was going on! So I cleared my history and loaded with changed data and it still looked the same. So I did a hard refresh and loaded again and looked at the dev console to see if it was pulling the file locally somehow or where the http requests where going. To my surprize it was pulling from 'http://files.phaser.io.s3.amazonaws.com/codingtips/issue005/assets/maze.json' I then looked at the html file for the project and saw this line this.load.baseURL = 'http://files.phaser.io.s3.amazonaws.com/codingtips/issue005/'; Changing it to this.load.baseURL = ''; points it at the local dir and lets me update the files. Cheers! Link to comment Share on other sites More sharing options...
Recommended Posts