Skip to content

hackclub/flavorMap

Map Editing Starter Kit

office map thumbnail

This codebase controls the map (including assets, bounding boxes and event triggers) for flavortown.

Flavor Town / Work Adventure loads the map from a URL, in our case, https://hackclub.github.io/flavorMap/ (hosted with github pages. Changes to the Repo are automatically applied)

Eventually I intend to create a slack bot that will add custom assets into the map files. As of now feel free to PR. The map is in 32*32px, I recommend editing with the Tiled editor, as it handles tmj files well.

Work Adventure has good guidance on this: https://docs.workadventu.re/map-building/tiled-editor/.

For issues, questions or suggestions, DM me @EuanRipper on slack. (Don't tell me i pushed the .env, it is non sensitive!)

How to edit the map

Currently FlavourTown run the office.tmj file. Clone this repo and open the office.tmj file in Tiled (make sure it is within this repo, not an isolated file.)

When adding in any external assets, be sure to add them to the public images in this repo and embedd the tileset into the map, this is important.

Contribution Guidelines

-If you make a change that invalidates information in this README, update this README.

-Always follow this file structure:

  • public/: Static files like PDFs or audio files
  • src/: Scripts files or design source files
  • tilesets/: All PNG tilesets

-Your Pull request should include a screenshot of the change, along with a thorough explanation of changes made. It is very hard to identify changes made by looking at the files in code, and there isn't version history in Tiled -please describe what you have done properly!

Pro tips If you want to use more than one map file, just add the new map file in the root folder (I recommend creating a copy of office.tmj and editing it, in order to avoid any mistakes).
use 512x512 images for the map thumbnails. If you are going to create custom websites to embed in the map, please reference the HTML files in the input option in vite.config.js.

Requirements

Node.js version >=17

Installation and testing

With npm installed (comes with node), run the following commands into a terminal in the root directory of the project:

npm install

Then, you can test your map by running:

npm run dev

You can also test the optimized map as it will be in production by running:

npm run build
npm run prod

You can manually upload your map to the map storage by running:

npm run deploy

Licenses

Do not violate the license agreements of WorkAdventure:

About third party assets

If you add third party assets in your map, do not forget to:

  1. Credit the author and license of a tileset with the "tilesetCopyright" property by etiding the tileset in Tiled.
  2. Add the tileset license text in LICENSE.assets.
  3. Credit the author and license of a map with the "mapCopyright" property in the custom properties of the map.
  4. Add the map license text in LICENSE.map.

About

No description, website, or topics provided.

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE.assets
Unknown
LICENSE.code
Unknown
LICENSE.map

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published