Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutoriallevel/data/levels/testSwallow.oxw @ 8748

Last change on this file since 8748 was 7679, checked in by dafrick, 14 years ago

Renaming levelfiles (and some other) according to our new naming conventions which is using camelCase, without '_' or spaces.

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1<LevelInfo
2 name = "Swallow Testlevel"
3 description = "Level to test the swallow spaceship."
4 tags = "test"
5/>
6
7<?lua
8  include("HUDTemplates3.oxo")
9  include("stats.oxo")
10  include("templates/spaceshipSwallow.oxt")
11  include("templates/spaceshipPirate.oxt")
12  include("templates/lodInformation.oxt")
13?>
14
15<Level
16 name         = "Presentation_swallow"
17 description  = "presentation level for Orxonox Convention X"
18
19>
20
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24
25  <Scene
26   ambientlight = "0.5, 0.5, 0.5"
27   skybox       = "Orxonox/skypanoramagen1"
28  >
29    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
30
31<SpawnPoint position="<?lua print(math.sin(1.5) *40000) ?>,<?lua print(math.cos(1.5) *40000) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow />
32
33
34<?lua
35max = 20
36for i = 1, max, 1
37do
38    x = math.sin(i/max*6)*40000
39    y = math.cos(i/max*6)*40000
40    z = i*100
41    ?>
42<?lua
43for k = 1, 25, 1
44do
45j = math.random()
46?>
47
48    <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
49      <attached>
50        <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
51      </attached>
52      <?lua if i == 5 then ?><collisionShapes>
53        <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
54      </collisionShapes> <?lua end ?>
55    </MovableEntity>
56<?lua
57end
58?>
59<?lua end ?>
60    <Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
61
62  </Scene>
63</Level>
Note: See TracBrowser for help on using the repository browser.