Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/releasetodo/data/levels/test_swallow.oxw @ 7645

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

Small adjustments.

  • Property svn:eol-style set to native
File size: 1.9 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/spaceship_swallow.oxt")
11  include("templates/spaceship_pirate.oxt")
12?>
13
14<Level
15 name         = "Presentation_swallow"
16 description  = "presentation level for Orxonox Convention X"
17
18>
19  <Scene
20   ambientlight = "0.5, 0.5, 0.5"
21   skybox       = "Orxonox/skypanoramagen1"
22  >
23    <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" />
24
25
26<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 />
27
28
29<?lua
30max = 20
31for i = 1, max, 1
32do
33    x = math.sin(i/max*6)*40000
34    y = math.cos(i/max*6)*40000
35    z = i*100
36    ?>
37<?lua
38for k = 1, 25, 1
39do
40j = math.random()
41?>
42
43    <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) ?>">
44      <attached>
45        <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
46      </attached>
47      <?lua if i == 5 then ?><collisionShapes>
48        <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
49      </collisionShapes> <?lua end ?>
50    </MovableEntity>
51<?lua
52end
53?>
54<?lua end ?>
55    <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 />
56
57  </Scene>
58</Level>
Note: See TracBrowser for help on using the repository browser.