Commit Graph

18 Commits

Author SHA1 Message Date
evilchili
ae3d40e91e Added CLI options for controlling text output 2025-08-17 19:29:09 -07:00
evilchili
2cddc902ab typo 2025-08-17 18:01:48 -07:00
evilchili
b03f4c1193 Source data is now in toml format
The input text is now expected to be a toml file with a leading comment
section defining the battle map, according to the following rules:

1. Blank lines are ignored
2. Lines at the top of the file beginning with '#', optionally with
   leading spaces, is treated as map data
3. Map data continues until the first line not starting with a #.
4. Any subsequent lines are treated as metadata in toml format.
5. The metadata must contain the [map] section.
6. The [map] section must contain the "name" attribute.

The metadata is available as BattleMap.metadata; the map source is
available as BattleMap.map_string.

New convenience properties ahve been added to the BattleMap class for
accessing portions of the text-only output. This includes the header and
footer attributes.
2025-08-17 17:56:14 -07:00
evilchili
ee8c2af2d8 Add coordinate axes to string rendering 2025-08-17 16:58:17 -07:00
evilchili
cc35a60210 bug in legend 2025-08-17 14:43:07 -07:00
evilchili
cdbb233622 donjon.sh converter
Initial implementation of a basic tool that converts an exported
donjon.sh dungeon json file to a text dungeon suitable for rendering by
the tilemapper.

Polymorphic definitions are discarded; all rooms are squared.
2025-08-17 12:04:51 -07:00
evilchili
1f3c467348 adding help output 2025-08-11 17:33:23 -07:00
evilchili
abd1aa28c4 Simplify CLI 2025-08-11 17:30:02 -07:00
evilchili
60528926ee Refactor tilesets 2025-08-11 17:06:16 -07:00
evilchili
4b02cc4c9d cleanup; cache tile and image data
This commit refactors tileset.py to simplify the implementation and
properly cache both tile data and image data. This results in a roughly
50% speedup in image generation.
2025-08-11 12:42:34 -07:00
evilchili
78785fbea5 do not draw background tile 2025-08-08 23:06:08 -07:00
evilchili
dc6c7cfd57 do not draw background tile 2025-08-08 22:50:08 -07:00
b0f854fb63 typo 2025-08-08 22:33:51 -07:00
evilchili
186604e94f docstrings, type hints, bug fixes 2025-08-08 22:29:46 -07:00
evilchili
e82c5ebc59 add docstrings and type hints 2025-08-08 17:22:15 -07:00
evilchili
8435892c57 adding CLI help 2025-08-08 16:07:18 -07:00
evilchili
a566423e8a Initial import 2025-08-08 15:45:09 -07:00
96fb86cb19 Initial commit 2025-08-08 15:41:46 -07:00