Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8265 for code/trunk


Ignore:
Timestamp:
Apr 19, 2011, 11:51:31 AM (14 years ago)
Author:
youngk
Message:

Updated Planets level. Works perfectly now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/levels/planets.oxw

    r8263 r8265  
    1 <LevelInfo
    2  name = "Planets"
    3  description = "Planets Level"
    4  tags = "test"
     1<LevelInfo
     2
     3    name = "Planets"
     4
     5    description = "Planets Level"
     6
     7    tags = "test"
     8
    59/>
    610
     11
     12
    713<?lua
    8   include("HUDTemplates3.oxo")
    9   include("stats.oxo")
    10   include("templates/spaceshipAssff.oxt")
    11   include("templates/lodInformation.oxt")
     14
     15    include("HUDTemplates3.oxo")
     16
     17    include("stats.oxo")
     18
     19    include("templates/spaceshipAssff.oxt")
     20
     21    include("templates/lodInformation.oxt")
     22
    1223?>
    1324
    14 <Level
    15  name         = "Sample"
    16  description  = "Just a few tests"
    17 >
    18   <templates>
    19     <Template link=lodtemplate_default />
    20   </templates>
    21 
    22   <Scene
    23    ambientlight = "0.3, 0.3, 0.3"
    24    skybox       = "Orxonox/Starbox"
    25   >
    26  
    27   <?lua
    28       planetsize=4000
    29     ?>
    30 
    31     <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 />
    3225
    3326
    34     <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 />
     27<Level
    3528
    36     <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 />
     29    name = "Planets"
     30    description  = "Planets Level"
    3731
    38     <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 />
     32>
    3933
    40     <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 />
     34    <templates>
     35   
     36    <Template link=lodtemplate_default />
    4137
    42   </Scene>
     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
    43122</Level>
Note: See TracChangeset for help on using the changeset viewer.