Add explain to have multi exit layers into the map

This commit is contained in:
gparant 2020-05-11 00:07:54 +02:00
parent f4af824cf9
commit 1868bd3f65

View File

@ -48,7 +48,7 @@ A few things to notice:
If you have exit scene If you have exit scene
- You must create layer "exit". The layer have cases where the gamer can switch to the next scene. - You must create layer "exit". The layer have cases where the gamer can switch to the next scene.
- In layer properties, you must add "exitSceneUrl" property. It represents a url map of the next scene For exemple : `/<map folder>/<map>.json`. Be careful, if you want that the next map will be correctly loaded, you must check that the map files are in folder `back/src/Assets/Maps/<your map folder>`. The files will be accessible by url `<HOST>/map/files/<your map folder>/...`. - In layer properties, you must add "exitSceneUrl" property. It represents a url map of the next scene For exemple : `/<map folder>/<map>.json`. Be careful, if you want that the next map will be correctly loaded, you must check that the map files are in folder `back/src/Assets/Maps/<your map folder>`. The files will be accessible by url `<HOST>/map/files/<your map folder>/...`.
- If you want to have multi exit, you can create each layer with name "exit". Each layer has key `exitSceneUrl` and have tiles what represent exit from another scene.
![](doc/images/exit_layer_map.png) ![](doc/images/exit_layer_map.png)
### MacOS developers, your environment with Vagrant ### MacOS developers, your environment with Vagrant