This directory contains the Tiled source maps (*.tmx) used to edit Flare maps.
The game does not load these files directly. Runtime maps are exported as Flare
map text files under mods/*/maps/.
- Open
tiled/flare-game.tiled-projectin Tiled. - Open an existing map or one of the template maps, for example:
tiled/grassland/grassland_template.tmxtiled/dungeon/dungeon_template.tmxtiled/cave/cave_template.tmxtiled/snowplains/snowplains_template.tmxtiled/ruins/ruins_template.tmx
- Edit the map in Tiled.
- Ensure the
libflareplugin in Tiled's Preferences menu is enabled. - Export the map as a Flare map (
*.txt) into the matching mod'smaps/directory, for examplemods/empyrean_campaign/maps/arrival.txt.
The devlab mod also contains an in-game mapping tutorial. See the NPC dialog
files under mods/devlab/npcs/ for the same workflow explained in-game.
It's also recommended to use the flare-tiled-tools repository to aid in map creation and editing.
Tiled maps can reference several smaller tilesheet images from
tiled/tilesheets/. The exported runtime map uses the simpler Flare map format
and points at a single tileset definition in its header, such as:
tileset=tilesetdefs/tileset_grassland.txtTileset definition files live in the mods, for example:
mods/fantasycore/tilesetdefs/tileset_grassland.txtmods/fantasycore/tilesetdefs/tileset_dungeon.txtmods/fantasycore/tilesetdefs/tileset_cave.txtmods/fantasycore/tilesetdefs/tileset_snowplains.txtmods/empyrean_campaign/tilesetdefs/tileset_ruins.txt
Those tileset definitions map tile IDs to the runtime tileset images used by the engine. They are not generated automatically as part of a normal map edit; use the existing tileset definitions unless you are intentionally adding or changing a tileset.
Some tileset folders include rules.txt files. These list Tiled automapping rule
maps used while editing, for example:
rules/grassland_ruleset0.tmx
rules/grassland_ruleset1.tmxThese files are editor-side helpers. They are useful when working in Tiled, but they are not runtime maps loaded by the game.
Further information with regards to editing Flare maps can be found on the flare-engine wiki.