Skip to content

Commit

Permalink
Fixed old JSON format references
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdoTR committed Feb 7, 2023
1 parent e50ebbd commit 0451205
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ npm run preview
This project contains multiple licenses as follows:

* [Code license](./LICENSE.code) *(all files except those for other licenses)*
* [Map license](./LICENSE.map) *(`map.json` and the map visual as well)*
* [Map license](./LICENSE.map) *(`map.tmj` and the map visual as well)*
* [Assets license](./LICENSE.assets) *(the files inside the `src/assets/` folder)*

### About third party assets

If you add third party assets in your map, do not forget to:
1. Credit the author and license with the "tilesetCopyright" property present in the properties of each tilesets in the `map.json` file
1. Credit the author and license with the "tilesetCopyright" property present in the properties of each tilesets in the `map.jtmj` file
2. Add the license text in LICENSE.assets
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
path = path.substr(path, path.length - 'index.html'.length);
}
const instanceId = Math.random().toString(36).substring(2, 15);
const url = `https://play.workadventu.re/_/${instanceId}/${host}${path}maps/map.json`;
const url = `https://play.workadventu.re/_/${instanceId}/${host}${path}maps/map.tmj`;
document.getElementById('testMapURL').href = url;
document.getElementById('testMapBtnURL').href = url;
document.getElementById('testMapURL').innerText = url;

const jsonURL = window.location.protocol + '//' + window.location.host + path + 'maps/map.json';
document.getElementById('jsonURL').innerText = jsonURL;
const tmjURL = window.location.protocol + '//' + window.location.host + path + 'maps/map.tmj';
document.getElementById('tmjURL').innerText = tmjURL;

const gettingStartedLink = 'https://workadventu.re/getting-started?name=Map&mapUrl=' + jsonURL;
const gettingStartedLink = 'https://workadventu.re/getting-started?name=Map&mapUrl=' + tmjURL;
document.getElementById('gettingStartedLink').href = gettingStartedLink;

};
Expand Down Expand Up @@ -229,7 +229,7 @@
<p>Register your room on Workadventu.re</p>
<p><a id="gettingStartedLink" href="" class="nes-btn is-primary">Publish this map</a></p>
<p>or copy and paste the map URL in WorkAdventu.re's administration panel:</p>
<p><span id="jsonURL" class="url"></span></p>
<p><span id="tmjURL" class="url"></span></p>
</div>
</main>
<footer><a href="https://workadventu.re/" target="_blank" title="workadventu.re">&copy; WorkAdventure</a></footer>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "workadventure-map-starter-kit",
"version": "3.2.4",
"version": "3.2.5",
"license": "MIT",
"scripts": {
"dev": "vite",
Expand Down

0 comments on commit 0451205

Please sign in to comment.