Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Is the JSON format documented anywhere?

A topic by pooserville created Dec 31, 2020 Views: 253 Replies: 2
Viewing posts 1 to 3

I like to use donjon.bin.sh to generate maps, especially cave maps, and then import them into the map editor. Works great except that the imported file uses square walls instead of cavern walls so I have to manually fix the walls if I don't want the map to look like something out of an Atari 2600.

Because I'm lazy, I figured I'd save the file, pop open the JSON, and see if it were possible to do some sort of batch update with a text editor, but I'm having trouble figuring out the JSON and thought I'd ask if there are any existing resources before I tried to poke at it more.

OK, so for anybody else who's curious the quick approach is to find the section "collisions" and change every  :0 to :1 in that section. Instant cavern walls!

Developer (1 edit)

Unfortunately, there’s no documentation for the Json format for now :/ As a temporary workaround, you may search & replace:

:0"

with:

:1"

in the collisions section.