nczempin / Turres-Monacorum

scifi tower defense made with löve2d and lua
http://nczempin.github.io/Turres-Monacorum/
Other
52 stars 10 forks source link

transition options save format to be more lua-like #105

Open nczempin opened 10 years ago

nczempin commented 10 years ago

When implementing the file format for loading/saving options, I just manually read a file and searched for (or wrote) texts on individual lines, a sort of simply .ini "name=value" format.

It turns out that the paradigm is to use Lua-like structures (sort of like JSON would be in JavaScript), which would remove the need for special code. I saw that in @PriorBlue's code for loading/saving the levels, as well as in the Lua book I'm currently reading. So I'd like to eventually transition the file format to using that.