{"__v":1,"_id":"551e00f5a7e98017009e3ee4","category":{"__v":7,"_id":"550a4c2e42fff40d00ae6049","project":"543b9b0065bf840e00b473d5","version":"543b9b0065bf840e00b473d8","pages":["550a4d06492cbf0d00bbff79","550a870cb6fd572500a57a42","550d801711e8d00d00b80380","551e00f5a7e98017009e3ee4","551edb36c2d1ec1700b4261c","554f09c6a8c1ae0d00c5bb93","55b63d63f8105a2f00c34e33"],"reference":false,"createdAt":"2015-03-19T04:10:22.740Z","from_sync":false,"order":3,"slug":"units","title":"Units"},"project":"543b9b0065bf840e00b473d5","user":"543b9aa865bf840e00b473d1","version":{"__v":11,"_id":"543b9b0065bf840e00b473d8","project":"543b9b0065bf840e00b473d5","createdAt":"2014-10-13T09:27:28.467Z","releaseDate":"2014-10-13T09:27:28.467Z","categories":["543b9b0065bf840e00b473d9","543b9ef065bf840e00b473e0","54890012f291f61400c02d36","54890902f291f61400c02d3e","54890c43f291f61400c02d44","54890d71c178b40b00aa3086","5508125c0c4d8c19008a5f83","55094050961f17170070abbd","550945111c38c50d006118ad","550a4c2e42fff40d00ae6049","55221c074801a40d00a77610"],"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"createdAt":"2015-04-03T02:54:45.356Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"order":6,"body":"The game is built in several layers, to accommodate moving units, so they appear properly in front or behind objects. Here's an example of the layers\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/RUULuIlhRaeJDCyhiaY7\",\n        \"layers-city-building-kit-1.jpg\",\n        \"877\",\n        \"516\",\n        \"\",\n        \"\"\n      ],\n      \"caption\": \"\"\n    }\n  ]\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"caption\": \"Layers with Numbers\",\n      \"image\": [\n        \"https://www.filepicker.io/api/file/El90OnGCRQ6tumNCCI2w\",\n        \"layers-city-building-kit 2.jpg\",\n        \"877\",\n        \"516\",\n        \"#19466d\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Breakdown of the Object Layers\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Layers (back to front)\",\n    \"0-0\": \"**1. Base layer **- ocean, sand, grass **(very back layer)**\",\n    \"1-0\": \"**2. Square patches of grass**, on which the buildings reside\",\n    \"2-0\": \"**3. Tall vegetation/buildings/rocks are built from 2 layers** \\n\\n- top (foreground) \\n- base (background) bases will also have colliders, to prevent units from getting too close and intersecting the sprite 'base edges'\",\n    \"3-0\": \"**4. Sea units** - although in front of the ocean layer, they will carry a 'patch' of water with them while moving\",\n    \"4-0\": \"**5. Ground units** - in front of building bases, but in the back of building tops, to be able to go 'behind' them\",\n    \"5-0\": \"**6. Air units **- the red gargoyle - while in the air, they appear in foreground on top of everything else **(very front layer)**\"\n  },\n  \"cols\": 1,\n  \"rows\": 6\n}\n[/block]","excerpt":"","slug":"object-layers","type":"basic","title":"Object Layers"}

Object Layers


The game is built in several layers, to accommodate moving units, so they appear properly in front or behind objects. Here's an example of the layers [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/RUULuIlhRaeJDCyhiaY7", "layers-city-building-kit-1.jpg", "877", "516", "", "" ], "caption": "" } ] } [/block] [block:image] { "images": [ { "caption": "Layers with Numbers", "image": [ "https://www.filepicker.io/api/file/El90OnGCRQ6tumNCCI2w", "layers-city-building-kit 2.jpg", "877", "516", "#19466d", "" ] } ] } [/block] [block:api-header] { "type": "basic", "title": "Breakdown of the Object Layers" } [/block] [block:parameters] { "data": { "h-0": "Layers (back to front)", "0-0": "**1. Base layer **- ocean, sand, grass **(very back layer)**", "1-0": "**2. Square patches of grass**, on which the buildings reside", "2-0": "**3. Tall vegetation/buildings/rocks are built from 2 layers** \n\n- top (foreground) \n- base (background) bases will also have colliders, to prevent units from getting too close and intersecting the sprite 'base edges'", "3-0": "**4. Sea units** - although in front of the ocean layer, they will carry a 'patch' of water with them while moving", "4-0": "**5. Ground units** - in front of building bases, but in the back of building tops, to be able to go 'behind' them", "5-0": "**6. Air units **- the red gargoyle - while in the air, they appear in foreground on top of everything else **(very front layer)**" }, "cols": 1, "rows": 6 } [/block]