diff --git a/example/testmap.tmj b/example/testmap.tmj index 1b6229d..7fa5abc 100644 --- a/example/testmap.tmj +++ b/example/testmap.tmj @@ -48,6 +48,134 @@ "width":236.611039794608, "x":377.098844672657, "y":263.722721437741 + }, + { + "height":0, + "id":1, + "name":"ground", + "polyline":[ + { + "x":0, + "y":0 + }, + { + "x":-158.75, + "y":0.5 + }, + { + "x":-183.5, + "y":8 + }, + { + "x":-191, + "y":17.75 + }, + { + "x":-203, + "y":19.75 + }, + { + "x":-254, + "y":21 + }, + { + "x":-264.25, + "y":16 + }, + { + "x":-289, + "y":17 + }, + { + "x":-289.75, + "y":-1.25 + }, + { + "x":-295.5, + "y":-6.5 + }, + { + "x":-294.25, + "y":-26 + }, + { + "x":-288.5, + "y":-25.75 + }, + { + "x":-288.25, + "y":-32.5 + }, + { + "x":-335, + "y":-32.75 + }], + "rotation":0, + "type":"", + "visible":true, + "width":0, + "x":5343.5, + "y":769.75 + }, + { + "height":0, + "id":340, + "name":"Dizzy", + "polygon":[ + { + "x":0, + "y":2 + }, + { + "x":-4, + "y":8 + }, + { + "x":-4, + "y":16 + }, + { + "x":4, + "y":24 + }, + { + "x":12, + "y":24 + }, + { + "x":20, + "y":16 + }, + { + "x":20, + "y":8 + }, + { + "x":16, + "y":2 + }], + "rotation":0, + "type":"", + "visible":true, + "width":0, + "x":5255.2, + "y":737.97 + }, + { + "height":19, + "id":15, + "name":"", + "text": + { + "text":"Hello World", + "wrap":true + }, + "rotation":0, + "type":"", + "visible":true, + "width":248, + "x":48, + "y":136 }], "opacity":1, "type":"objectgroup", @@ -77,4 +205,4 @@ "type":"map", "version":"1.10", "width":30 -} \ No newline at end of file +} diff --git a/src/map.c b/src/map.c index 3c37cff..8164a08 100644 --- a/src/map.c +++ b/src/map.c @@ -216,8 +216,7 @@ Text* unpack_text(json_t* text) { 0, "{" "s?b, s?b, s?b, s?b, s?b, s?b," - "s?s, s?s?, s?s, s:s, s?s," - "s?i," + "s?s, s?s, s?s, s:s, s?s, s?i" "}", "bold", &ret->bold,