Referencing test in index.html and adding some text in the test map.

This commit is contained in:
David Négrier 2021-06-28 10:06:56 +02:00
parent b0eb241fc3
commit f18291e9d2
2 changed files with 115 additions and 93 deletions

View File

@ -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>

View File

@ -1,13 +1,9 @@
{
"compressionlevel": -1,
{ "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
],
"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",
@ -19,10 +15,7 @@
"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
],
"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",
@ -37,19 +30,36 @@
"draworder":"topdown",
"id":3,
"name":"floorLayer",
"objects": [],
"objects":[
{
"height":66.6666666666667,
"id":1,
"name":"",
"rotation":0,
"text":
{
"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": 1,
"nextobjectid":2,
"orientation":"orthogonal",
"renderorder":"right-down",
"tiledversion": "1.6.0",
"tiledversion":"2021.03.23",
"tileheight":32,
"tilesets":[
{
@ -71,8 +81,7 @@
"name":"start",
"type":"string",
"value":"S1"
}
]
}]
},
{
"id":1,
@ -81,15 +90,12 @@
"name":"start",
"type":"string",
"value":"S2"
}
]
}
],
}]
}],
"tilewidth":32
}
],
}],
"tilewidth":32,
"type":"map",
"version": "1.6",
"version":1.5,
"width":5
}