Update README.md

This commit is contained in:
Mister_Nebula 2020-06-12 00:06:45 +01:00 committed by GitHub
parent ff8503d420
commit 3f29c5707b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,25 +16,52 @@ Moon support is coming soon!
<!-- /TOC --> <!-- /TOC -->
## Creating a planet file : ## Creating a planet file :
This list will update as more options are added. Structure JSON file like so : This list will update as more options are added. Here is an example of a file :
``` ```
{ {
"name" : "Test Planet", "name" : "Gallifrey",
"position" : { "position" : {
"x" : 0, "x" : 0,
"y" : 0, "y" : 0,
"z" : 5000 "z" : 10000
}, },
"orbitAngle" : 0, "orbitAngle" : 45,
"primaryBody" : "SUN", "primaryBody" : "SUN",
"hasFog" : true, "isMoon" : false,
"fogTint" : { "hasSpawnPoint" : true,
"r" : 255, "hasClouds" : true,
"g" : 100, "topCloudSize" : 650,
"b" : 0, "bottomCloudSize" : 600,
"a" : 128 "bottomCloudTint" :
}, {
"fogDensity" : 0.5 "r" : 255,
"g" : 0,
"b" : 0,
"a" : 128
},
"topCloudTint" :
{
"r" : 255,
"g" : 0,
"b" : 0,
"a" : 128
},
"hasWater" : true,
"waterSize" : 401,
"hasRain" : true,
"hasGravity" : true,
"surfaceAcceleration" : 12,
"hasMapMarker" : true,
"hasFog" : true,
"fogTint" :
{
"r" : 255,
"g" : 100,
"b" : 0,
"a" : 128
},
"fogDensity" : 0.75,
"groundSize" : 400
} }
``` ```
Everything in "Required" is always needed, and so is every tabbed line in an option. Everything in "Required" is always needed, and so is every tabbed line in an option.