Referencing test in index.html and adding some text in the test map.
This commit is contained in:
parent
b0eb241fc3
commit
f18291e9d2
@ -162,6 +162,22 @@
|
||||
<a href="#" class="testLink" data-testmap="animated_tiles.json" target="_blank">Test animated tiles</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="radio" name="test-start-tile-S1"> Success <input type="radio" name="test-start-tile-S1"> Failure <input type="radio" name="test-start-tile-S1" checked> Pending
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" class="testLink" data-testmap="start-tile.json#S1" target="_blank">Test start tile (S1)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="radio" name="test-start-tile-S2"> Success <input type="radio" name="test-start-tile-S2"> Failure <input type="radio" name="test-start-tile-S2" checked> Pending
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" class="testLink" data-testmap="start-tile.json#S2" target="_blank">Test start tile (S2)</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
|
@ -1,95 +1,101 @@
|
||||
{
|
||||
"compressionlevel": -1,
|
||||
"height": 5,
|
||||
"infinite": false,
|
||||
"layers": [
|
||||
{ "compressionlevel":-1,
|
||||
"height":5,
|
||||
"infinite":false,
|
||||
"layers":[
|
||||
{
|
||||
"data": [
|
||||
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
|
||||
4
|
||||
],
|
||||
"height": 5,
|
||||
"id": 4,
|
||||
"name": "background",
|
||||
"opacity": 1,
|
||||
"type": "tilelayer",
|
||||
"visible": true,
|
||||
"width": 5,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
"data":[4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],
|
||||
"height":5,
|
||||
"id":4,
|
||||
"name":"background",
|
||||
"opacity":1,
|
||||
"type":"tilelayer",
|
||||
"visible":true,
|
||||
"width":5,
|
||||
"x":0,
|
||||
"y":0
|
||||
},
|
||||
{
|
||||
"data": [
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 3, 0, 0, 2, 3, 3, 0, 2,
|
||||
2
|
||||
],
|
||||
"height": 5,
|
||||
"id": 1,
|
||||
"name": "start",
|
||||
"opacity": 1,
|
||||
"type": "tilelayer",
|
||||
"visible": true,
|
||||
"width": 5,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
"data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 3, 0, 0, 2, 3, 3, 0, 2, 2],
|
||||
"height":5,
|
||||
"id":1,
|
||||
"name":"start",
|
||||
"opacity":1,
|
||||
"type":"tilelayer",
|
||||
"visible":true,
|
||||
"width":5,
|
||||
"x":0,
|
||||
"y":0
|
||||
},
|
||||
{
|
||||
"draworder": "topdown",
|
||||
"id": 3,
|
||||
"name": "floorLayer",
|
||||
"objects": [],
|
||||
"opacity": 1,
|
||||
"type": "objectgroup",
|
||||
"visible": true,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
}
|
||||
],
|
||||
"nextlayerid": 5,
|
||||
"nextobjectid": 1,
|
||||
"orientation": "orthogonal",
|
||||
"renderorder": "right-down",
|
||||
"tiledversion": "1.6.0",
|
||||
"tileheight": 32,
|
||||
"tilesets": [
|
||||
"draworder":"topdown",
|
||||
"id":3,
|
||||
"name":"floorLayer",
|
||||
"objects":[
|
||||
{
|
||||
"columns": 2,
|
||||
"firstgid": 1,
|
||||
"image": "function_tiles.png",
|
||||
"imageheight": 64,
|
||||
"imagewidth": 64,
|
||||
"margin": 0,
|
||||
"name": "function_tiles",
|
||||
"spacing": 0,
|
||||
"tilecount": 4,
|
||||
"tileheight": 32,
|
||||
"tiles": [
|
||||
"height":66.6666666666667,
|
||||
"id":1,
|
||||
"name":"",
|
||||
"rotation":0,
|
||||
"text":
|
||||
{
|
||||
"id": 0,
|
||||
"properties": [
|
||||
"fontfamily":"Sans Serif",
|
||||
"pixelsize":11,
|
||||
"text":"If URL contains hash #S1, player starts on S1.\nIf URL contains hash #S2, player starts on S2.",
|
||||
"wrap":true
|
||||
},
|
||||
"type":"",
|
||||
"visible":true,
|
||||
"width":155.104166666667,
|
||||
"x":3.28125,
|
||||
"y":2.5
|
||||
}],
|
||||
"opacity":1,
|
||||
"type":"objectgroup",
|
||||
"visible":true,
|
||||
"x":0,
|
||||
"y":0
|
||||
}],
|
||||
"nextlayerid":5,
|
||||
"nextobjectid":2,
|
||||
"orientation":"orthogonal",
|
||||
"renderorder":"right-down",
|
||||
"tiledversion":"2021.03.23",
|
||||
"tileheight":32,
|
||||
"tilesets":[
|
||||
{
|
||||
"name": "start",
|
||||
"type": "string",
|
||||
"value": "S1"
|
||||
}
|
||||
]
|
||||
"columns":2,
|
||||
"firstgid":1,
|
||||
"image":"function_tiles.png",
|
||||
"imageheight":64,
|
||||
"imagewidth":64,
|
||||
"margin":0,
|
||||
"name":"function_tiles",
|
||||
"spacing":0,
|
||||
"tilecount":4,
|
||||
"tileheight":32,
|
||||
"tiles":[
|
||||
{
|
||||
"id":0,
|
||||
"properties":[
|
||||
{
|
||||
"name":"start",
|
||||
"type":"string",
|
||||
"value":"S1"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"properties": [
|
||||
"id":1,
|
||||
"properties":[
|
||||
{
|
||||
"name": "start",
|
||||
"type": "string",
|
||||
"value": "S2"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"tilewidth": 32
|
||||
}
|
||||
],
|
||||
"tilewidth": 32,
|
||||
"type": "map",
|
||||
"version": "1.6",
|
||||
"width": 5
|
||||
"name":"start",
|
||||
"type":"string",
|
||||
"value":"S2"
|
||||
}]
|
||||
}],
|
||||
"tilewidth":32
|
||||
}],
|
||||
"tilewidth":32,
|
||||
"type":"map",
|
||||
"version":1.5,
|
||||
"width":5
|
||||
}
|
Loading…
Reference in New Issue
Block a user