aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorIndrajith K L2021-08-03 23:06:26 +0530
committerIndrajith K L2021-08-03 23:06:26 +0530
commitc3c5832587bfd36d12790537c5acb36c02574ddb (patch)
tree8890b34a79d411180284ddb8960814482de2997b /assets
parent705886d371cf2cfa619b321c0d87caca0773a789 (diff)
downloadrebirth-wren-c3c5832587bfd36d12790537c5acb36c02574ddb.tar.gz
rebirth-wren-c3c5832587bfd36d12790537c5acb36c02574ddb.tar.bz2
rebirth-wren-c3c5832587bfd36d12790537c5acb36c02574ddb.zip
Failed attempt to build collision detection
Diffstat (limited to 'assets')
-rw-r--r--assets/level1.json30
-rw-r--r--assets/level1.tmx7
2 files changed, 31 insertions, 6 deletions
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 @@
<?xml version="1.0" encoding="UTF-8"?>
-<map version="1.5" tiledversion="1.5.0" orientation="orthogonal" renderorder="right-down" width="20" height="15" tilewidth="16" tileheight="16" infinite="0" nextlayerid="6" nextobjectid="2">
+<map version="1.5" tiledversion="1.5.0" orientation="orthogonal" renderorder="right-down" width="20" height="15" tilewidth="16" tileheight="16" infinite="0" nextlayerid="7" nextobjectid="8">
<editorsettings>
<export target="level1.json" format="json"/>
</editorsettings>
@@ -43,6 +43,9 @@
</data>
</layer>
<objectgroup id="5" name="objects">
- <object id="1" name="player" type="player" x="16" y="32" width="16" height="16"/>
+ <object id="1" name="player" type="player" x="0" y="0" width="16" height="16"/>
+ </objectgroup>
+ <objectgroup id="6" name="colliders">
+ <object id="7" type="collider" x="95.75" y="55.5" width="47.75" height="60.5"/>
</objectgroup>
</map>