Rewording exit paragraph

This commit is contained in:
David Négrier 2020-05-11 08:51:46 +02:00
parent 45370e6391
commit ac69861e37

View File

@ -45,10 +45,12 @@ A few things to notice:
![](doc/images/tiled_screenshot_1.png)
If you have exit 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>/...`.
- 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.
In order to place an on your scene that leads to another scene:
- You must create an "exit" layer. The layer name MUST be "exit".
- In layer properties, you must add "exitSceneUrl" property. It represents the map URL of the next scene. For example : `/<map folder>/<map>.json`. Be careful, if you want the next map to 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 multiple exits, you can create many layers with name "exit". Each layer has a different key `exitSceneUrl` and have tiles that represent exits to another scene.
![](doc/images/exit_layer_map.png)
### MacOS developers, your environment with Vagrant