From a8ad0e74cb484fa5166f841f1c2bb6875a3917c7 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 16 Jul 2008 16:22:00 +0000 Subject: documentation update --- doc/world.html | 82 +++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 64 insertions(+), 18 deletions(-) diff --git a/doc/world.html b/doc/world.html index 70c8fbe..ae8ba8a 100644 --- a/doc/world.html +++ b/doc/world.html @@ -32,26 +32,21 @@ File structure

- A world description files uses the windows ini-file syntax. Every section starts - with a section name enclosed in square brackets. For example, a section called - planet would look like: -

-[planet]
-
-

- Every section contains a list of value=key pairs to describe the properties - for the current section. A planet would probably have a radius and a texture and the - planet section could look like: + A world description files uses the windows ini-file syntax. These files contain one or more sections. + Every section starts with a section name enclosed in square brackets and contains a list of + value=key pairs to describe the properties for the current section. + Lines starting with a semicolon are considered comments and are ignored. +

+ For example, a section planet describing an iceworld:

+; The iceworld, a very dark and cold place
 [planet]
+label=iceworld
+name=The World of Ice
 radius=32
 texture=planets/iceworld
 
-

- Lines starting with a semicolon are considered comments and are ignored: -

-; The iceworld, a very dark and cold place
-
+

world.ini

@@ -163,20 +158,71 @@ texture=planets/iceworld roll angle, default is 0 +

+ An example of an entity with a basic shape: + +

+; The Galactic origin
+[entity]
+label=origin
+name=Galactic origin
+shape=axis
+radius=1
+location=0 0 0
+; yellow
+color=1 1 0
+
+ +

+ An example of an entity with a model: +

+; Alexandria outpost
+[entity]
+label=alexandria
+name=Alexandria outpost
+model=stations/alexandria
+location=-116 -68 16
+direction=315
+; light brown
+color=222 192 145
+
+

[planet]

- A planet. + A planet is spherical entity with a texture. and a default radius of 32. The planet globe will + be rendered with lighting enabled. +

+; The iceworld, a very dark and cold place
+[planet]
+label=iceworld
+name=The World of Ice
+texture=planets/iceworld
+; a grey-blue colour
+color =0.5 0.5 0.8
+
+

[star]

- A star. + A star is a spherical entity without texture and a default radius of 48. The star globe + will be rendered fullbright and serve as the main source of light for the current system. + At the moment only one system light source is supported. If you define multiple stars, + the last one will serve as light source. +

+[star]
+label=whitedwarf
+name=White Dwarf
+; a slightly yellow colour
+color=1.0 1.0 0.9
+
+

ships.ini

- Ships that can be purchased go here. + Definition of the shopping list. -- cgit v1.2.3