This is a map built upon the starter kit for WorkAdventure map making.
To understand how to use this starter kit, follow the tutorial at https://workadventu.re/map-building.
You can visit the Library at: https://play.workadventu.re/@/responsibletech.work/rtw/library
This map uses the generateResourceLayers script to auto-populate Library resources.
If you wish to visually edit the map, you'll need the Tiled map editor. The WorkAdventure map building tutorial provides additional info on how to add or edit WorkAdventure-specific properties and layers in Tiled.
A note if you're using the latest version of Tiled (1.9+): due to changes in the JSON schema, you'll likely encounter an issue with special area zones that play music or open websites. Currently, the easiest solution is to open the JSON map file within a Tiled project with v1.8 compatibility mode enabled. For this reason, the project file is also included in this repo.
If you intend to edit the map in Tiled v1.9+, first open the project file RespTechLibrary.tiled-project
in Tiled, and then open the library.json
file. A .tiled-session
file will also be created to help you resume work where you left it.
- tilesets : All tilesets
- public : Static files
- src : All TypeScript/Javascript scripts
- library.json : Map file
- library.png : Image displayed on README.md and on the map infos in-game
If you want to use more than one map file, just add the new map file in the root folder, your tilesets in the assets folder and a new script if you need it in the src folder (it will be automaticaly optimized in production).
Node.js version >=16
With npm installed (comes with node), run the following commands into a terminal in the root directory of this project:
npm install
npm run dev
You can test the optimized map as you do in production:
npm run build
npm run preview
This project contains multiple licenses as follows:
- Code license (all files except those for other licenses)
- Map license (
library.json
and the map visual as well) - Assets license (the files inside the
src/assets/
folder)
If you add third party assets in your map, do not forget to:
- Credit the author and license with the "tilesetCopyright" property present in the properties of each tilesets in the
library.json
file - Add the license text in LICENSE.assets