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 -->
## 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" : {
"x" : 0,
"y" : 0,
"z" : 5000
"z" : 10000
},
"orbitAngle" : 0,
"orbitAngle" : 45,
"primaryBody" : "SUN",
"isMoon" : false,
"hasSpawnPoint" : true,
"hasClouds" : true,
"topCloudSize" : 650,
"bottomCloudSize" : 600,
"bottomCloudTint" :
{
"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" : {
"fogTint" :
{
"r" : 255,
"g" : 100,
"b" : 0,
"a" : 128
},
"fogDensity" : 0.5
"fogDensity" : 0.75,
"groundSize" : 400
}
```
Everything in "Required" is always needed, and so is every tabbed line in an option.