Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/planets.oxw @ 8344

Last change on this file since 8344 was 8265, checked in by youngk, 14 years ago

Updated Planets level. Works perfectly now.

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1<LevelInfo
2
3    name = "Planets"
4
5    description = "Planets Level"
6
7    tags = "test"
8
9/>
10
11
12
13<?lua
14
15    include("HUDTemplates3.oxo")
16
17    include("stats.oxo")
18
19    include("templates/spaceshipAssff.oxt")
20
21    include("templates/lodInformation.oxt")
22
23?>
24
25
26
27<Level
28
29    name = "Planets"
30    description  = "Planets Level"
31
32>
33
34    <templates>
35   
36    <Template link=lodtemplate_default />
37
38    </templates>
39
40
41
42    <Scene
43
44        ambientlight = "0.3, 0.3, 0.3"
45     
46   skybox       = "Orxonox/skypanoramagen1"
47
48    >
49
50 
51      <?lua
52
53            planetsize=4000
54
55        ?>
56        <Light
57            type=directional
58            position="-10000,-10000,0"
59            direction="1, 1, 0"
60            diffuse="1.0, 0.9, 0.9, 1.0"
61            specular="1.0, 0.9, 0.9, 1.0"
62        />
63   
64
65    <SpawnPoint
66            position="<?lua print(math.sin(1.5) *(2)*planetsize) ?>,<?lua print(math.cos(1.5) *3*planetsize) ?>,<?lua print(500) ?>"
67            lookat="0,0,0"
68            spawnclass=SpaceShip
69            pawndesign=spaceshipassff
70        />
71
72
73
74        <Planet
75            position="0,0,0"
76            scale="<?lua print(planetsize) ?>"
77            pitch=-90
78            mesh="Muunilinst.mesh"
79            atmosphere="atmosphere1"
80            rotationaxis="0,1,0"
81            rotationrate="1"
82            atmospheresize=300.0f
83            imagesize=1024.0f
84        />
85
86
87        <Planet
88            position="<?lua print(3*planetsize) ?>,0,0"
89            scale="1000"
90            pitch=0
91            mesh="ganymede.mesh"
92            atmosphere="atmosphere1"
93            rotationaxis="0,1,0"
94            rotationrate="1"
95            atmospheresize=300.0f
96            imagesize=1024.0f
97        />
98        <Planet
99            position="0,<?lua print(3*planetsize) ?>,0"
100            scale="1000"
101            pitch=0
102            mesh="jupiter.mesh"
103            atmosphere="atmosphere1"
104            rotationaxis="0,1,0"
105            rotationrate="1"
106            atmospheresize=300.0f
107            imagesize=1024.0f
108        />
109        <Planet
110            position="0,0,<?lua print(3*planetsize) ?>"
111            scale="1000"
112            pitch=0
113            mesh="Planet3.mesh"
114            atmosphere="atmosphere1"
115            rotationaxis="0,1,0"
116            rotationrate="1"
117            atmospheresize=300.0f
118            imagesize=1024.0f
119        />
120    </Scene>
121
122</Level>
Note: See TracBrowser for help on using the repository browser.