Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)
it doesn't look like your full, updated source code is posted on Github. Maybe a number of versions behind?

The source code on github is I don't know how many years old, it's one of the first versions of the generator. I'm not planning to update it anytime soon: normally I don't publish code of projects I am still working on, that old code is an anomaly :)

Might it be possible to utilize the web browser's storage to maintain a user's edits between sessions?

There are a number of problems with the idea of storing changes locally, both technical and conceptual:

  • LocalStorage is not good for storing "data", it is designed to store "state" (it's a thin line of course). Its available size is a few megabytes (as far as I remember). This is not much, because everything in there is stored as strings and, more importantly, changes made to many (potentially very many) cities need to be stored.
  • It's either saving changes made to every generated map which seems just wrong, or asking every time "do you want to save changes for the future?", "it looks like you edited this city before, do you want restore changes?" which seems awkward.
  • Changes saved this way are not transferable. They won't be applied if you open the same fantasy map on another computer and click a settlement, which is counterintuitive.

OK, I was going to write a couple more points, but got tired :). At the moment it seems to me that this functionality is only possible if Azgaar's generator and mine are merged into one application and it's not something we are planning.