More map editing
Getty Ritter
7 years ago
8 | 8 | height = 12, |
9 | 9 | tilewidth = 24, |
10 | 10 | tileheight = 24, |
11 |
nextobjectid = |
|
11 | nextobjectid = 7, | |
12 | 12 | properties = {}, |
13 | 13 | tilesets = { |
14 | 14 | { |
254 | 254 | { |
255 | 255 | id = 33, |
256 | 256 | properties = { |
257 | ["behind"] = true, | |
257 | 258 | ["pass"] = true |
258 | 259 | } |
259 | 260 | }, |
1064 | 1065 | { |
1065 | 1066 | id = 163, |
1066 | 1067 | properties = { |
1067 |
["pass"] = |
|
1068 | ["pass"] = false | |
1068 | 1069 | } |
1069 | 1070 | }, |
1070 | 1071 | { |
1238 | 1239 | { |
1239 | 1240 | id = 192, |
1240 | 1241 | properties = { |
1241 |
["pass"] = |
|
1242 | ["pass"] = false | |
1242 | 1243 | } |
1243 | 1244 | }, |
1244 | 1245 | { |
1245 | 1246 | id = 193, |
1246 | 1247 | properties = { |
1247 |
["pass"] = |
|
1248 | ["pass"] = false | |
1248 | 1249 | } |
1249 | 1250 | }, |
1250 | 1251 | { |
1251 | 1252 | id = 194, |
1252 | 1253 | properties = { |
1253 |
["pass"] = |
|
1254 | ["pass"] = false | |
1254 | 1255 | } |
1255 | 1256 | }, |
1256 | 1257 | { |
1257 | 1258 | id = 195, |
1258 | 1259 | properties = { |
1259 |
["pass"] = |
|
1260 | ["pass"] = false | |
1260 | 1261 | } |
1261 | 1262 | }, |
1262 | 1263 | { |
1263 | 1264 | id = 196, |
1264 | 1265 | properties = { |
1265 |
["pass"] = |
|
1266 | ["pass"] = false | |
1266 | 1267 | } |
1267 | 1268 | }, |
1268 | 1269 | { |
1269 | 1270 | id = 197, |
1270 | 1271 | properties = { |
1271 |
["pass"] = |
|
1272 | ["pass"] = false | |
1272 | 1273 | } |
1273 | 1274 | }, |
1274 | 1275 | { |
1626 | 1627 | { |
1627 | 1628 | id = 256, |
1628 | 1629 | properties = { |
1629 |
["pass"] = |
|
1630 | ["pass"] = false | |
1630 | 1631 | } |
1631 | 1632 | }, |
1632 | 1633 | { |
1633 | 1634 | id = 257, |
1634 | 1635 | properties = { |
1635 |
[" |
|
1636 | ["action"] = "showMessage", | |
1637 | ["pass"] = false | |
1636 | 1638 | } |
1637 | 1639 | }, |
1638 | 1640 | { |
1639 | 1641 | id = 258, |
1640 | 1642 | properties = { |
1641 |
[" |
|
1643 | ["action"] = "showMessage", | |
1644 | ["pass"] = false | |
1642 | 1645 | } |
1643 | 1646 | }, |
1644 | 1647 | { |
1818 | 1821 | { |
1819 | 1822 | id = 288, |
1820 | 1823 | properties = { |
1821 |
[" |
|
1824 | ["action"] = "showMessage", | |
1825 | ["pass"] = false | |
1822 | 1826 | } |
1823 | 1827 | }, |
1824 | 1828 | { |
6252 | 6256 | data = { |
6253 | 6257 | 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, |
6254 | 6258 | 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, |
6255 |
1024, 1024, 1024, 1024, 1024, 16 |
|
6259 | 1024, 1024, 1024, 1024, 1024, 162, 163, 162, 163, 162, 163, 162, 1024, 1024, 1024, 1024, | |
6256 | 6260 | 1024, 1024, 1024, 1024, 1024, 161, 161, 161, 161, 161, 161, 161, 1024, 1024, 1024, 1024, |
6257 | 6261 | 1024, 1024, 1024, 1024, 1024, 161, 161, 161, 161, 161, 161, 161, 1024, 1024, 1024, 1024, |
6258 | 6262 | 1024, 1024, 1024, 1024, 1024, 161, 161, 161, 161, 161, 161, 161, 1024, 1024, 1024, 1024, |
6280 | 6284 | data = { |
6281 | 6285 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
6282 | 6286 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
6283 | 0, 0, 0, 0, 0, 162, 163, 162, 162, 162, 163, 162, 0, 0, 0, 0, | |
6284 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
6285 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
6286 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
6287 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 257, 0, 0, 0, 0, 0, 0, | |
6288 | 0, 0, 0, 0, 0, 195, 193, 164, 197, 289, 258, 259, 0, 0, 0, 0, | |
6289 | 0, 0, 0, 0, 0, 194, 0, 0, 0, 0, 0, 226, 0, 0, 0, 0, | |
6290 | 0, 0, 0, 0, 0, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
6287 | 6291 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 227, 0, 0, 0, 0, 0, |
6288 | 6292 | 0, 0, 0, 0, 0, 229, 0, 0, 0, 229, 225, 228, 0, 0, 0, 0, |
6289 | 6293 | 0, 0, 0, 0, 0, 229, 0, 0, 0, 0, 226, 0, 0, 0, 0, 0, |
6318 | 6322 | ["targetX"] = 9, |
6319 | 6323 | ["targetY"] = 3 |
6320 | 6324 | } |
6325 | }, | |
6326 | { | |
6327 | id = 2, | |
6328 | name = "", | |
6329 | type = "", | |
6330 | shape = "rectangle", | |
6331 | x = 240, | |
6332 | y = 72, | |
6333 | width = 24, | |
6334 | height = 24, | |
6335 | rotation = 0, | |
6336 | visible = true, | |
6337 | properties = { | |
6338 | ["signText"] = " A sheaf of scattered papers." | |
6339 | } | |
6340 | }, | |
6341 | { | |
6342 | id = 3, | |
6343 | name = "", | |
6344 | type = "", | |
6345 | shape = "rectangle", | |
6346 | x = 264, | |
6347 | y = 72, | |
6348 | width = 24, | |
6349 | height = 24, | |
6350 | rotation = 0, | |
6351 | visible = true, | |
6352 | properties = { | |
6353 | ["signText"] = " A laptop is opened to some kind of awful\n blue web site with a bird icon.\n\n It appears to collect the worst opinions\n you've ever seen in your life." | |
6354 | } | |
6355 | }, | |
6356 | { | |
6357 | id = 5, | |
6358 | name = "", | |
6359 | type = "", | |
6360 | shape = "rectangle", | |
6361 | x = 216, | |
6362 | y = 72, | |
6363 | width = 24, | |
6364 | height = 24, | |
6365 | rotation = 0, | |
6366 | visible = true, | |
6367 | properties = { | |
6368 | ["signText"] = " You rummage through the fridge, but\n nothing looks good." | |
6369 | } | |
6321 | 6370 | } |
6322 | 6371 | } |
6323 | 6372 | } |
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 |
<map version="1.0.0" orientation="orthogonal" renderorder="right-down" width="16" height="12" tilewidth="24" tileheight="24" nextobjectid=" |
|
2 | <map version="1.0.0" orientation="orthogonal" renderorder="right-down" width="16" height="12" tilewidth="24" tileheight="24" nextobjectid="7"> | |
3 | 3 | <tileset firstgid="1" source="../../../pictures/tiles/animaltransiro.tsx"/> |
4 | 4 | <layer name="tiles" width="16" height="12"> |
5 | 5 | <data encoding="csv"> |
6 | 6 | 1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024, |
7 | 7 | 1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024, |
8 |
1024,1024,1024,1024,1024,16 |
|
8 | 1024,1024,1024,1024,1024,162,163,162,163,162,163,162,1024,1024,1024,1024, | |
9 | 9 | 1024,1024,1024,1024,1024,161,161,161,161,161,161,161,1024,1024,1024,1024, |
10 | 10 | 1024,1024,1024,1024,1024,161,161,161,161,161,161,161,1024,1024,1024,1024, |
11 | 11 | 1024,1024,1024,1024,1024,161,161,161,161,161,161,161,1024,1024,1024,1024, |
21 | 21 | <data encoding="csv"> |
22 | 22 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
23 | 23 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
24 | 0,0,0,0,0,162,163,162,162,162,163,162,0,0,0,0, | |
25 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | |
26 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | |
27 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | |
24 | 0,0,0,0,0,0,0,0,0,257,0,0,0,0,0,0, | |
25 | 0,0,0,0,0,195,193,164,197,289,258,259,0,0,0,0, | |
26 | 0,0,0,0,0,194,0,0,0,0,0,226,0,0,0,0, | |
27 | 0,0,0,0,0,198,0,0,0,0,0,0,0,0,0,0, | |
28 | 28 | 0,0,0,0,0,0,0,0,0,0,227,0,0,0,0,0, |
29 | 29 | 0,0,0,0,0,229,0,0,0,229,225,228,0,0,0,0, |
30 | 30 | 0,0,0,0,0,229,0,0,0,0,226,0,0,0,0,0, |
41 | 41 | <property name="targetY" type="int" value="3"/> |
42 | 42 | </properties> |
43 | 43 | </object> |
44 | <object id="2" x="240" y="72" width="24" height="24"> | |
45 | <properties> | |
46 | <property name="signText" value=" A sheaf of scattered papers."/> | |
47 | </properties> | |
48 | </object> | |
49 | <object id="3" x="264" y="72" width="24" height="24"> | |
50 | <properties> | |
51 | <property name="signText"> A laptop is opened to some kind of awful | |
52 | blue web site with a bird icon. | |
53 | ||
54 | It appears to collect the worst opinions | |
55 | you've ever seen in your life.</property> | |
56 | </properties> | |
57 | </object> | |
58 | <object id="5" x="216" y="72" width="24" height="24"> | |
59 | <properties> | |
60 | <property name="signText"> You rummage through the fridge, but | |
61 | nothing looks good.</property> | |
62 | </properties> | |
63 | </object> | |
44 | 64 | </objectgroup> |
45 | 65 | </map> |
254 | 254 | { |
255 | 255 | id = 33, |
256 | 256 | properties = { |
257 | ["behind"] = true, | |
257 | 258 | ["pass"] = true |
258 | 259 | } |
259 | 260 | }, |
1052 | 1053 | { |
1053 | 1054 | id = 161, |
1054 | 1055 | properties = { |
1055 |
["pass"] = |
|
1056 | ["pass"] = false | |
1056 | 1057 | } |
1057 | 1058 | }, |
1058 | 1059 | { |
1059 | 1060 | id = 162, |
1060 | 1061 | properties = { |
1061 |
["pass"] = |
|
1062 | ["pass"] = false | |
1062 | 1063 | } |
1063 | 1064 | }, |
1064 | 1065 | { |
1065 | 1066 | id = 163, |
1066 | 1067 | properties = { |
1067 |
["pass"] = |
|
1068 | ["pass"] = false | |
1068 | 1069 | } |
1069 | 1070 | }, |
1070 | 1071 | { |
1238 | 1239 | { |
1239 | 1240 | id = 192, |
1240 | 1241 | properties = { |
1241 |
["pass"] = |
|
1242 | ["pass"] = false | |
1242 | 1243 | } |
1243 | 1244 | }, |
1244 | 1245 | { |
1245 | 1246 | id = 193, |
1246 | 1247 | properties = { |
1247 |
["pass"] = |
|
1248 | ["pass"] = false | |
1248 | 1249 | } |
1249 | 1250 | }, |
1250 | 1251 | { |
1251 | 1252 | id = 194, |
1252 | 1253 | properties = { |
1253 |
["pass"] = |
|
1254 | ["pass"] = false | |
1254 | 1255 | } |
1255 | 1256 | }, |
1256 | 1257 | { |
1257 | 1258 | id = 195, |
1258 | 1259 | properties = { |
1259 |
["pass"] = |
|
1260 | ["pass"] = false | |
1260 | 1261 | } |
1261 | 1262 | }, |
1262 | 1263 | { |
1263 | 1264 | id = 196, |
1264 | 1265 | properties = { |
1265 |
["pass"] = |
|
1266 | ["pass"] = false | |
1266 | 1267 | } |
1267 | 1268 | }, |
1268 | 1269 | { |
1269 | 1270 | id = 197, |
1270 | 1271 | properties = { |
1271 |
["pass"] = |
|
1272 | ["pass"] = false | |
1272 | 1273 | } |
1273 | 1274 | }, |
1274 | 1275 | { |
1430 | 1431 | { |
1431 | 1432 | id = 224, |
1432 | 1433 | properties = { |
1433 |
["pass"] = |
|
1434 | ["pass"] = false | |
1434 | 1435 | } |
1435 | 1436 | }, |
1436 | 1437 | { |
1437 | 1438 | id = 225, |
1438 | 1439 | properties = { |
1440 | ["behind"] = "true", | |
1439 | 1441 | ["pass"] = true |
1440 | 1442 | } |
1441 | 1443 | }, |
1442 | 1444 | { |
1443 | 1445 | id = 226, |
1444 | 1446 | properties = { |
1447 | ["behind"] = "true", | |
1445 | 1448 | ["pass"] = true |
1446 | 1449 | } |
1447 | 1450 | }, |
1448 | 1451 | { |
1449 | 1452 | id = 227, |
1450 | 1453 | properties = { |
1454 | ["behind"] = "true", | |
1451 | 1455 | ["pass"] = true |
1452 | 1456 | } |
1453 | 1457 | }, |
1454 | 1458 | { |
1455 | 1459 | id = 228, |
1456 | 1460 | properties = { |
1461 | ["behind"] = "true", | |
1457 | 1462 | ["pass"] = true |
1458 | 1463 | } |
1459 | 1464 | }, |
1622 | 1627 | { |
1623 | 1628 | id = 256, |
1624 | 1629 | properties = { |
1625 |
["pass"] = |
|
1630 | ["pass"] = false | |
1626 | 1631 | } |
1627 | 1632 | }, |
1628 | 1633 | { |
1629 | 1634 | id = 257, |
1630 | 1635 | properties = { |
1631 |
[" |
|
1636 | ["action"] = "showMessage", | |
1637 | ["pass"] = false | |
1632 | 1638 | } |
1633 | 1639 | }, |
1634 | 1640 | { |
1635 | 1641 | id = 258, |
1636 | 1642 | properties = { |
1637 |
[" |
|
1643 | ["action"] = "showMessage", | |
1644 | ["pass"] = false | |
1638 | 1645 | } |
1639 | 1646 | }, |
1640 | 1647 | { |
1814 | 1821 | { |
1815 | 1822 | id = 288, |
1816 | 1823 | properties = { |
1817 |
[" |
|
1824 | ["action"] = "showMessage", | |
1825 | ["pass"] = false | |
1818 | 1826 | } |
1819 | 1827 | }, |
1820 | 1828 | { |
6276 | 6284 | data = { |
6277 | 6285 | 0, 26, 27, 28, 29, 0, 0, 5, 30, 31, 32, 0, 0, 0, 0, 0, |
6278 | 6286 | 0, 58, 59, 60, 61, 0, 0, 37, 62, 63, 64, 0, 0, 0, 0, 0, |
6279 |
5, 90, 91, 92, 93, 0, 0, 0, 94, 95, 96, |
|
6287 | 5, 90, 91, 92, 93, 0, 0, 0, 94, 95, 96, 34, 0, 0, 0, 0, | |
6280 | 6288 | 37, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, |
6281 | 6289 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 35, 0, 0, 0, |
6282 | 6290 | 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 37, 0, 0, 0, 0, |
6283 | 6291 | 0, 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 0, 4, 0, 69, 0, |
6284 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 101, 0, | |
6285 | 0, 3, 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, | |
6286 | 0, 35, 0, 0, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
6287 | 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
6292 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 101, 0, | |
6293 | 0, 3, 0, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 5, 0, | |
6294 | 0, 35, 0, 0, 69, 0, 0, 0, 0, 0, 0, 0, 34, 0, 37, 0, | |
6295 | 0, 0, 0, 0, 101, 0, 0, 0, 34, 0, 0, 0, 0, 0, 0, 0, | |
6288 | 6296 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
6289 | 6297 | } |
6290 | 6298 | }, |
21 | 21 | <data encoding="csv"> |
22 | 22 | 0,26,27,28,29,0,0,5,30,31,32,0,0,0,0,0, |
23 | 23 | 0,58,59,60,61,0,0,37,62,63,64,0,0,0,0,0, |
24 |
5,90,91,92,93,0,0,0,94,95,96, |
|
24 | 5,90,91,92,93,0,0,0,94,95,96,34,0,0,0,0, | |
25 | 25 | 37,0,0,0,4,0,0,0,0,0,0,0,3,0,0,0, |
26 | 26 | 0,0,0,0,0,0,0,0,0,0,0,5,35,0,0,0, |
27 | 27 | 0,0,0,0,0,0,0,3,0,0,0,37,0,0,0,0, |
28 | 28 | 0,0,0,0,0,0,0,35,0,0,0,0,4,0,69,0, |
29 | 0,0,0,0,0,0,0,0,0,5,0,0,0,0,101,0, | |
30 | 0,3,0,0,0,0,0,0,0,37,0,0,0,0,0,0, | |
31 | 0,35,0,0,69,0,0,0,0,0,0,0,0,0,0,0, | |
32 | 0,0,0,0,101,0,0,0,0,0,0,0,0,0,0,0, | |
29 | 0,0,0,0,0,0,0,0,0,0,0,0,0,5,101,0, | |
30 | 0,3,0,34,0,0,0,0,0,0,0,0,0,37,5,0, | |
31 | 0,35,0,0,69,0,0,0,0,0,0,0,34,0,37,0, | |
32 | 0,0,0,0,101,0,0,0,34,0,0,0,0,0,0,0, | |
33 | 33 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 |
34 | 34 | </data> |
35 | 35 | </layer> |
45 | 45 | -- if we've got dialogue up, then show that, too |
46 | 46 | -- XXX: factor this out! |
47 | 47 | if state.message then |
48 | love.graphics.setColor(255, 255, 255) | |
49 | 48 | local w = consts.boardWidth * consts.tileSize |
50 | 49 | local h = consts.boardHeight * consts.tileSize / 2 |
50 | love.graphics.setColor(0, 0, 0) | |
51 | love.graphics.rectangle('fill', 6, 6 + h, w - 12, h - 12) | |
52 | love.graphics.setColor(255, 255, 255) | |
51 | 53 | love.graphics.rectangle('fill', 8, 8 + h, w - 16, h - 16) |
52 | 54 | love.graphics.setColor(0, 0, 0) |
53 | 55 | love.graphics.print(state.message, 12, h + 12) |
Binary diff not shown
Binary diff not shown