From ee46111d3f5f0bda6c9d13a39c5c822eac4d74a6 Mon Sep 17 00:00:00 2001 From: Chasethechicken Date: Tue, 21 Dec 2021 22:22:26 +0100 Subject: [PATCH] Add test instructions Also make the invisible and alpha layers seperate areas, to make success more obvious. --- maps/tests/layer-visibility.json | 80 +++++++++++++++++++++++++------- 1 file changed, 64 insertions(+), 16 deletions(-) diff --git a/maps/tests/layer-visibility.json b/maps/tests/layer-visibility.json index 02205819..cb65cad7 100644 --- a/maps/tests/layer-visibility.json +++ b/maps/tests/layer-visibility.json @@ -1,40 +1,40 @@ { "compressionlevel":-1, - "height":10, + "height":9, "infinite":false, "layers":[ { - "data":[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], - "height":10, + "data":[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], + "height":9, "id":1, "name":"floor", "opacity":1, "type":"tilelayer", "visible":true, - "width":10, + "width":9, "x":0, "y":0 }, { - "data":[34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34], - "height":10, + "data":[34, 34, 34, 0, 0, 0, 0, 0, 0, 34, 34, 34, 0, 0, 0, 0, 0, 0, 34, 34, 34, 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":9, "id":7, "name":"invisible", "opacity":1, "type":"tilelayer", "visible":false, - "width":10, + "width":9, "x":0, "y":0 }, { - "data":[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, 12, 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":10, + "data":[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, 12, 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":9, "id":2, "name":"start", "opacity":1, "type":"tilelayer", "visible":true, - "width":10, + "width":9, "x":0, "y":0 }, @@ -54,7 +54,55 @@ "draworder":"topdown", "id":3, "name":"floorLayer", - "objects":[], + "objects":[ + { + "height":113.62434712736, + "id":2, + "name":"", + "rotation":0, + "text": + { + "text":"The striped tiles in the top left corner should be invisible.", + "wrap":true + }, + "type":"", + "visible":true, + "width":108.583142912147, + "x":4.76293503917236, + "y":3.18514798446498 + }, + { + "height":196.249229945092, + "id":3, + "name":"", + "rotation":0, + "text": + { + "text":"The striped tiles in the top right corner should be transparent and appear above the player.", + "wrap":true + }, + "type":"", + "visible":true, + "width":148.867058808759, + "x":137.442726119928, + "y":2.49946430962904 + }, + { + "height":72.9975893933307, + "id":4, + "name":"", + "rotation":0, + "text": + { + "text":"The plant should be here (the center of the map)", + "wrap":true + }, + "type":"", + "visible":true, + "width":151.609793508102, + "x":83.616557645306, + "y":131.922257934914 + }], "opacity":1, "type":"objectgroup", "visible":true, @@ -62,19 +110,19 @@ "y":0 }, { - "data":[23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23], - "height":10, + "data":[0, 0, 0, 0, 0, 0, 23, 23, 23, 0, 0, 0, 0, 0, 0, 23, 23, 23, 0, 0, 0, 0, 0, 0, 23, 23, 23, 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":9, "id":8, "name":"transparent", "opacity":0.4, "type":"tilelayer", "visible":true, - "width":10, + "width":9, "x":0, "y":0 }], "nextlayerid":10, - "nextobjectid":2, + "nextobjectid":5, "orientation":"orthogonal", "renderorder":"right-down", "tiledversion":"1.7.2", @@ -96,5 +144,5 @@ "tilewidth":32, "type":"map", "version":"1.6", - "width":10 + "width":9 } \ No newline at end of file