[Orxonox-commit 3580] r8265 - code/trunk/data/levels

youngk at orxonox.net youngk at orxonox.net
Tue Apr 19 11:51:32 CEST 2011


Author: youngk
Date: 2011-04-19 11:51:31 +0200 (Tue, 19 Apr 2011)
New Revision: 8265

Modified:
   code/trunk/data/levels/planets.oxw
Log:
Updated Planets level. Works perfectly now.

Modified: code/trunk/data/levels/planets.oxw
===================================================================
--- code/trunk/data/levels/planets.oxw	2011-04-19 04:00:12 UTC (rev 8264)
+++ code/trunk/data/levels/planets.oxw	2011-04-19 09:51:31 UTC (rev 8265)
@@ -1,43 +1,122 @@
-<LevelInfo
- name = "Planets"
- description = "Planets Level"
- tags = "test"
-/>
+<LevelInfo
+
+    name = "Planets"
+
+    description = "Planets Level"
+
+    tags = "test"
 
+/>
+
+
+
 <?lua
-  include("HUDTemplates3.oxo")
-  include("stats.oxo")
-  include("templates/spaceshipAssff.oxt")
-  include("templates/lodInformation.oxt")
-?>
+
+    include("HUDTemplates3.oxo")
+
+    include("stats.oxo")
+
+    include("templates/spaceshipAssff.oxt")
+
+    include("templates/lodInformation.oxt")
 
+?>
+
+
+
 <Level
- name         = "Sample"
- description  = "Just a few tests"
+
+    name = "Planets"
+    description  = "Planets Level"
+
 >
-  <templates>
-    <Template link=lodtemplate_default />
-  </templates>
+
+    <templates>
+    
+    <Template link=lodtemplate_default />
 
-  <Scene
-   ambientlight = "0.3, 0.3, 0.3"
-   skybox       = "Orxonox/Starbox"
-  >
+    </templates>
+
+
+
+    <Scene
+
+        ambientlight = "0.3, 0.3, 0.3"
+     
+   skybox       = "Orxonox/skypanoramagen1"
+
+    >
+
   
-  <?lua
-      planetsize=4000
-    ?>
+      <?lua
 
-    <SpawnPoint position="<?lua print(math.sin(1.5) *(2)*planetsize) ?>,<?lua print(math.cos(1.5) *3*planetsize) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow />
+            planetsize=4000
 
+        ?>
+        <Light
+            type=directional
+            position="-10000,-10000,0"
+            direction="1, 1, 0"
+            diffuse="1.0, 0.9, 0.9, 1.0"
+            specular="1.0, 0.9, 0.9, 1.0"
+        />
+    
 
-    <Planet position="0,0,0" scale="<?lua print(planetsize) ?>" pitch=-90 mesh="Muunilinst.mesh" atmosphere="atmosphere1" rotationaxis="0,1,0" rotationrate="0.2" atmospheresize=300.0f imagesize=1024.0f />
+    <SpawnPoint
+            position="<?lua print(math.sin(1.5) *(2)*planetsize) ?>,<?lua print(math.cos(1.5) *3*planetsize) ?>,<?lua print(500) ?>"
+            lookat="0,0,0"
+            spawnclass=SpaceShip
+            pawndesign=spaceshipassff
+        />
 
-    <Planet position="<?lua print(3*planetsize) ?>,0,0" scale=1000 pitch=30 mesh="ganymede.mesh" atmosphere="atmosphere1" rotationaxis="1,0,1" rotationrate="1.5" atmospheresize=224.0f imagesize=1024.0f />
 
-    <Planet position="0,<?lua print(3*planetsize) ?>,0" scale=1000 pitch=30 mesh="jupiter.mesh" atmosphere="atmosphere1" rotationaxis="1,0,1" rotationrate="1.5" atmospheresize=224.0f imagesize=1024.0f />
+
+        <Planet
+            position="0,0,0"
+            scale="<?lua print(planetsize) ?>"
+            pitch=-90
+            mesh="Muunilinst.mesh"
+            atmosphere="atmosphere1"
+            rotationaxis="0,1,0"
+            rotationrate="1"
+            atmospheresize=300.0f
+            imagesize=1024.0f
+        />
 
-    <Planet position="0,0,<?lua print(3*planetsize) ?>" scale=1000 pitch=30 mesh="Planet3.mesh" atmosphere="atmosphere1" rotationaxis="1,0,1" rotationrate="1.5" atmospheresize=224.0f imagesize=1024.0f />
+
+        <Planet
+            position="<?lua print(3*planetsize) ?>,0,0"
+            scale="1000"
+            pitch=0
+            mesh="ganymede.mesh"
+            atmosphere="atmosphere1"
+            rotationaxis="0,1,0"
+            rotationrate="1"
+            atmospheresize=300.0f
+            imagesize=1024.0f
+        />
+        <Planet
+            position="0,<?lua print(3*planetsize) ?>,0"
+            scale="1000"
+            pitch=0
+            mesh="jupiter.mesh"
+            atmosphere="atmosphere1"
+            rotationaxis="0,1,0"
+            rotationrate="1"
+            atmospheresize=300.0f
+            imagesize=1024.0f
+        />
+        <Planet
+            position="0,0,<?lua print(3*planetsize) ?>"
+            scale="1000"
+            pitch=0
+            mesh="Planet3.mesh"
+            atmosphere="atmosphere1"
+            rotationaxis="0,1,0"
+            rotationrate="1"
+            atmospheresize=300.0f
+            imagesize=1024.0f
+        />
+    </Scene>
 
-  </Scene>
 </Level>




More information about the Orxonox-commit mailing list