-
Notifications
You must be signed in to change notification settings - Fork 4
Json Configuration
This wiki page will briefly discuss how JSON files can be configured. If you want to learn about how JSON files work, please view other pages on the web (Good Source), this page will just discuss things specific to Archipelo and the Libgdx JSON library.
Whenever JSON configuration files will be documented in the Archipelo wiki, there will always be a specified "default" value. This simply means that if you do not explicitly define what the value of a particular property is, it will be defaulted to that value.
This is useful if you don't care what the value is, or you plan on using the default value and just want to save space (although be mindful that it could change).
There are no specific styling guidelines for the Archipelo configuration files. Just make sure that everything is easy to read. For property names, you may want to use quotations or you may chose not to, either way is fine.
You may also add a comma at the end of the last element of an array. Whether you shose to or not is fine, but it just makes it so if a new element needs to be added to the array, the comma won't be forgotten.
If you have any other concerns about what is required, a good idea would be to check configuration files that are already used and are known to work. Every configuration file already has something similar to the one you will make so you have some good references.