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> <a href="#" class="testLink" data-testmap="animated_tiles.json" target="_blank">Test animated tiles</a>
</td> </td>
</tr> </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> </table>
<script> <script>

View File

@ -1,13 +1,9 @@
{ { "compressionlevel":-1,
"compressionlevel": -1,
"height":5, "height":5,
"infinite":false, "infinite":false,
"layers":[ "layers":[
{ {
"data": [ "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],
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, "height":5,
"id":4, "id":4,
"name":"background", "name":"background",
@ -19,10 +15,7 @@
"y":0 "y":0
}, },
{ {
"data": [ "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],
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, "height":5,
"id":1, "id":1,
"name":"start", "name":"start",
@ -37,19 +30,36 @@
"draworder":"topdown", "draworder":"topdown",
"id":3, "id":3,
"name":"floorLayer", "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, "opacity":1,
"type":"objectgroup", "type":"objectgroup",
"visible":true, "visible":true,
"x":0, "x":0,
"y":0 "y":0
} }],
],
"nextlayerid":5, "nextlayerid":5,
"nextobjectid": 1, "nextobjectid":2,
"orientation":"orthogonal", "orientation":"orthogonal",
"renderorder":"right-down", "renderorder":"right-down",
"tiledversion": "1.6.0", "tiledversion":"2021.03.23",
"tileheight":32, "tileheight":32,
"tilesets":[ "tilesets":[
{ {
@ -71,8 +81,7 @@
"name":"start", "name":"start",
"type":"string", "type":"string",
"value":"S1" "value":"S1"
} }]
]
}, },
{ {
"id":1, "id":1,
@ -81,15 +90,12 @@
"name":"start", "name":"start",
"type":"string", "type":"string",
"value":"S2" "value":"S2"
} }]
] }],
}
],
"tilewidth":32 "tilewidth":32
} }],
],
"tilewidth":32, "tilewidth":32,
"type":"map", "type":"map",
"version": "1.6", "version":1.5,
"width":5 "width":5
} }