From fee80f42f0889f2d484e25f4366f14b68c65ba70 Mon Sep 17 00:00:00 2001 From: realtradam Date: Wed, 19 May 2021 05:42:53 -0400 Subject: fully working map import --- assets/json/hitbox.json | 14 ++++++++++++++ assets/json/map_test2.json | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 assets/json/hitbox.json (limited to 'assets/json') diff --git a/assets/json/hitbox.json b/assets/json/hitbox.json new file mode 100644 index 0000000..a1b7938 --- /dev/null +++ b/assets/json/hitbox.json @@ -0,0 +1,14 @@ +{ "columns":1, + "image":"..\/..\/Documents\/Ruby\/dragon\/dragonruby-linux-amd64\/mygame\/assets\/hitbox.png", + "imageheight":16, + "imagewidth":16, + "margin":0, + "name":"hitbox", + "spacing":0, + "tilecount":1, + "tiledversion":"1.6.0", + "tileheight":16, + "tilewidth":16, + "type":"tileset", + "version":"1.6" +} \ No newline at end of file diff --git a/assets/json/map_test2.json b/assets/json/map_test2.json index ef9c4a1..33640e5 100644 --- a/assets/json/map_test2.json +++ b/assets/json/map_test2.json @@ -43,8 +43,35 @@ "width":16, "x":0, "y":0 + }, + { + "chunks":[ + { + "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5048, 5048, 5048, 5048, 5048, 5048, 5048, 5048, 5048, 5048, 0, 0, 0, 0, 0, 0, 5048, 0, 0, 0, 0, 0, 0, 0, 0, 5048, 0, 0, 0, 0, 0, 0, 5048, 0, 5048, 0, 5048, 5048, 0, 0, 0, 5048, 0, 0, 0, 0, 0, 0, 5048, 0, 0, 0, 5048, 5048, 0, 0, 0, 5048, 0, 0, 0, 0, 0, 0, 5048, 0, 0, 0, 0, 0, 0, 0, 0, 5048, 0, 0, 0, 0, 0, 0, 5048, 5048, 5048, 5048, 5048, 5048, 5048, 5048, 5048, 5048, 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, 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, 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":16, + "width":16, + "x":0, + "y":0 + }], + "height":16, + "id":3, + "name":"Tile Layer 3", + "opacity":1, + "properties":[ + { + "name":"Hitbox", + "type":"bool", + "value":true + }], + "startx":0, + "starty":0, + "type":"tilelayer", + "visible":true, + "width":16, + "x":0, + "y":0 }], - "nextlayerid":3, + "nextlayerid":4, "nextobjectid":1, "orientation":"orthogonal", "renderorder":"right-down", @@ -58,6 +85,10 @@ { "firstgid":4088, "source":"..\/tileset_1_Generic_16x16.tsx" + }, + { + "firstgid":5048, + "source":"..\/hitbox.tsx" }], "tilewidth":16, "type":"map", -- cgit v1.2.3