Update Making Maps authored by John Lang's avatar John Lang
...@@ -49,5 +49,12 @@ Loading the image for your layer is as simple as creating a new Image Layer and ...@@ -49,5 +49,12 @@ Loading the image for your layer is as simple as creating a new Image Layer and
### Foreground Layers ### Foreground Layers
To have a layers render in front of the player in game, the layer needs to be prefixed with `foreground`. Combining `foreground` with collision you can create nice effects, such as standing behind buildings, fences, trees, tables, etc. To have a layers render in front of the player in game, the layer needs to be prefixed with `foreground`. Combining `foreground` with collision you can create nice effects, such as standing behind buildings, fences, trees, tables, etc.
### Saving the Map Properties as CSV
IMPORTANT: If you skip this step, the Smart Pathing NPCs will not work correctly. Currently, the collision information for a map is parsed as a csv.
To select the correct format, click 'Map' and then click 'Map Properties', as shown below:
<p align="center">
<img src="https://imgur.com/a/9IMgSr6"/>
</p>
## Adding to the Game ## Adding to the Game
Once you are done with your map, it should be saved into the GameClient's /maps folder. The map must be added into the ServersForTest.java class in GameShared, making sure to increment the port number. Finally a new run configuration must be created to run the new server (Make sure to add this run config to the wiki). Once you are done with your map, it should be saved into the GameClient's /maps folder. The map must be added into the ServersForTest.java class in GameShared, making sure to increment the port number. Finally a new run configuration must be created to run the new server (Make sure to add this run config to the wiki).
\ No newline at end of file