From d78a37f8b41c709d05451436bd11d95ac7dce5ad Mon Sep 17 00:00:00 2001 From: "False.Genesis" Date: Wed, 26 Dec 2018 14:58:29 +0100 Subject: [PATCH] Updated layers (markdown) --- layers.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/layers.md b/layers.md index bbd3709..c0a4793 100644 --- a/layers.md +++ b/layers.md @@ -9,16 +9,18 @@ Internally, the game uses a lot more layers, but only some are available in the * Number keys 1-9 * No special properties * Detailed info: - * <[[Parallax layers|#Parallax layers] come somewhere around here> + * ([[Parallax layers|layers#Parallax layers]] come somewhere around here) * Layers 1, 2, 3: Behind the black background * Layer 4: The black background is located here. - * When tiles are moved to the front they are in front of the background; when they are moved to back, they are behind the background. + * While you are in the editor: When tiles are moved to the front they are in front of the background; when they are moved to back, they are behind the background. + * When the map is loaded, tiles will always be **under** the black background! (Their relative order stays the same, just the black background is added after the game engine has loaded the map, which means it will be drawn over every tile on the map.) + * Which in turn implies that if you change the relative order mid-game via scripting, **then** things might be drawn before the black background. * All layers after this are in front of the black background - * Layer 5: Auto-generated wall tiles are placed here. See [[Map basics|map-basics#modify-a-map]]. Do not use this layer for your own tiles. + * Layer 5: Auto-generated wall tiles are placed here. See [[Map basics|map-basics#modify-a-map]]. Do not use this layer for your own tiles unless you know what you are doing. * Layers 6, 7: In front of the previous layers but still behind entities. - * + * (Entities & particles come somewhere around here) * Layers 8, 9: In front of everything else. - * + * (The dark layer comes somewhere around here) ### Tips / typical layer use: * Layer 1: Non-parallax-scrolling repeat backgrounds @@ -28,6 +30,8 @@ Internally, the game uses a lot more layers, but only some are available in the * Layer 5: DO NOT USE * Layer 6: Foreground plants and decoration * Layer 7: Rarely a need to use this; spare +* Layer 8: Covering foreground plants, decoration, overlays +* Layer 9: Cover blackness to mask tile transitions or to fade out parts of foreground tiles; light pillars, overlays # Parallax layers