315fe7ca82
- Tiled displays your system fonts. - Computers have different sets of fonts. Therefore, browsers never rely on system fonts - Which means if you select a font in Tiled, it is quite unlikely it will render properly in WorkAdventure To circumvent this problem, in your text object in Tiled, you can now add an additional property: `font-family`. The `font-family` property can contain any "web-font" that can be loaded by your browser. This allows us to use the "Press Start 2P" 8px font in text objects, which renders way better than the default "Sans serif" font of your browser.
111 lines
3.7 KiB
JSON
111 lines
3.7 KiB
JSON
{ "compressionlevel":-1,
|
|
"height":10,
|
|
"infinite":false,
|
|
"layers":[
|
|
{
|
|
"data":[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
|
|
"height":10,
|
|
"id":1,
|
|
"name":"floor",
|
|
"opacity":1,
|
|
"type":"tilelayer",
|
|
"visible":true,
|
|
"width":10,
|
|
"x":0,
|
|
"y":0
|
|
},
|
|
{
|
|
"data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
"height":10,
|
|
"id":2,
|
|
"name":"start",
|
|
"opacity":1,
|
|
"type":"tilelayer",
|
|
"visible":true,
|
|
"width":10,
|
|
"x":0,
|
|
"y":0
|
|
},
|
|
{
|
|
"data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 34, 34, 34, 34, 34, 0, 0, 0, 0, 0, 34, 34, 34, 34, 34, 0, 0, 0, 0, 0, 34, 34, 34, 34, 34, 0, 0, 0, 0, 0, 34, 34, 34, 34, 34, 0, 0, 0, 0, 0, 34, 34, 34, 34, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
"height":10,
|
|
"id":5,
|
|
"name":"jitsiConf",
|
|
"opacity":1,
|
|
"properties":[
|
|
{
|
|
"name":"jitsiRoom",
|
|
"type":"string",
|
|
"value":"myRoom"
|
|
},
|
|
{
|
|
"name":"jitsiUrl",
|
|
"type":"string",
|
|
"value":"meet.jit.si"
|
|
}],
|
|
"type":"tilelayer",
|
|
"visible":true,
|
|
"width":10,
|
|
"x":0,
|
|
"y":0
|
|
},
|
|
{
|
|
"draworder":"topdown",
|
|
"id":3,
|
|
"name":"floorLayer",
|
|
"objects":[
|
|
{
|
|
"height":94.6489098314831,
|
|
"id":1,
|
|
"name":"",
|
|
"properties":[
|
|
{
|
|
"name":"font-family",
|
|
"type":"string",
|
|
"value":"\"Press Start 2P\""
|
|
}],
|
|
"rotation":0,
|
|
"text":
|
|
{
|
|
"fontfamily":"Sans Serif",
|
|
"pixelsize":8,
|
|
"text":"Test:\nWalk on the carpet and press space\nResult:\nJitsi opens on meet.jit.si (check this in the network tab). Note: this test only makes sense if the default configured Jitsi instance is NOT meet.jit.si (check your .env file)",
|
|
"wrap":true
|
|
},
|
|
"type":"",
|
|
"visible":true,
|
|
"width":317.361946929159,
|
|
"x":2.32853056864467,
|
|
"y":224.602707451482
|
|
}],
|
|
"opacity":1,
|
|
"type":"objectgroup",
|
|
"visible":true,
|
|
"x":0,
|
|
"y":0
|
|
}],
|
|
"nextlayerid":6,
|
|
"nextobjectid":2,
|
|
"orientation":"orthogonal",
|
|
"renderorder":"right-down",
|
|
"tiledversion":"2021.03.23",
|
|
"tileheight":32,
|
|
"tilesets":[
|
|
{
|
|
"columns":11,
|
|
"firstgid":1,
|
|
"image":"tileset1.png",
|
|
"imageheight":352,
|
|
"imagewidth":352,
|
|
"margin":0,
|
|
"name":"tileset1",
|
|
"spacing":0,
|
|
"tilecount":121,
|
|
"tileheight":32,
|
|
"tilewidth":32
|
|
}],
|
|
"tilewidth":32,
|
|
"type":"map",
|
|
"version":1.5,
|
|
"width":10
|
|
} |