From c3c5832587bfd36d12790537c5acb36c02574ddb Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Tue, 3 Aug 2021 23:06:26 +0530 Subject: Failed attempt to build collision detection --- assets/level1.json | 30 ++++++++++++++++++++++++++---- assets/level1.tmx | 7 +++++-- 2 files changed, 31 insertions(+), 6 deletions(-) (limited to 'assets') diff --git a/assets/level1.json b/assets/level1.json index fe44270..c2e6e68 100644 --- a/assets/level1.json +++ b/assets/level1.json @@ -47,8 +47,30 @@ "type":"player", "visible":true, "width":16, - "x":16, - "y":32 + "x":0, + "y":0 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + }, + { + "draworder":"topdown", + "id":6, + "name":"colliders", + "objects":[ + { + "height":60.5, + "id":7, + "name":"", + "rotation":0, + "type":"collider", + "visible":true, + "width":47.75, + "x":95.75, + "y":55.5 }], "opacity":1, "type":"objectgroup", @@ -56,8 +78,8 @@ "x":0, "y":0 }], - "nextlayerid":6, - "nextobjectid":2, + "nextlayerid":7, + "nextobjectid":8, "orientation":"orthogonal", "renderorder":"right-down", "tiledversion":"1.5.0", diff --git a/assets/level1.tmx b/assets/level1.tmx index e767d39..581d91c 100644 --- a/assets/level1.tmx +++ b/assets/level1.tmx @@ -1,5 +1,5 @@ - + @@ -43,6 +43,9 @@ - + + + + -- cgit v1.2.3