Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pickupsFS14/data/levels/Jump.oxw @ 10032

Last change on this file since 10032 was 10032, checked in by fvultier, 10 years ago

Neue Platformen werden zur Laufzeit hinzugefugt, wenn sich die Ansicht nach oben verschiebt. Eigene Modelle importieren funktioniert.

File size: 2.5 KB
Line 
1<LevelInfo
2 name = "Jump"
3 description = "Jump\nTip: Try to keep the multiplier high by avoiding shots and enemies."
4 tags = "minigame"
5 screenshot = "orxonoxArcade.png"
6/>
7<?lua
8  include("stats.oxo")
9  include("templates/lodInformation.oxt")
10?>
11
12<?lua
13  -- include("templates/spaceshipAssff2.oxt")
14  -- include("templates/spaceshipPirate.oxt")
15  include("templates/spaceshipJump.oxt")
16  -- include("templates/enemyInvader.oxt")
17  -- include("overlays/InvaderHUD.oxo")
18?>
19
20
21<Level gametype = Jump>
22  <templates>
23    <Template link=lodtemplate_default />
24  </templates>
25  <?lua include("includes/notifications.oxi") ?>
26
27    <!-- ambientlight = "0.8, 0.8, 0.8"
28    skybox       = "Orxonox/Starbox" -->
29  <Scene ambientlight = "0.8, 0.7, 0.4" skybox     = "Orxonox/skyBoxBasic">
30
31 
32    <WorldAmbientSound
33      source="Earth.ogg"
34      looping="true"
35      playOnLoad="true"
36    />
37 
38    <Planet
39      position="0, 0, -2000"
40      scale="1000"
41      collisionType="dynamic"
42      linearDamping="0.8"
43      angularDamping="0"
44      mass="10000000"
45      pitch="0"
46      mesh="planets/muunilinst.mesh"
47      atmosphere="atmosphere1"
48      rotationaxis="1,0,0"
49      rotationrate="1.0"
50      atmospheresize="80.0f"
51      imagesize="1024.0f"
52      collisiondamage = 2
53      enablecollisiondamage = true
54    >
55
56    </Planet>
57
58    <MovableEntity
59      position="0, 0, 500"
60      scale="5"
61      collisionType="dynamic"
62      mass="10000000"
63    >
64      <attached>
65        <Model mesh="Platform01.mesh" />
66      </attached>
67    </MovableEntity>
68
69
70
71    <!-- <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"/> -->
72    <Light type=directional position="1100, 11000, -7000" lookat="0, 0, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
73
74
75
76    <SpawnPoint team=0 position="0,0,0" lookat="0,0,-1" spawnclass=JumpShip pawndesign=spaceshipjump />
77
78
79    <JumpCenterPoint name=jumpcenter />
80
81   
82    <?lua
83      for i = 1, 200, 1 do
84        j = math.random()
85    ?>
86
87    <MovableEntity
88      position = "<?lua print(math.random(-300,300)) ?>,<?lua print(math.random(-250,10000)) ?>,-300>"
89      collisionType = dynamic
90      linearDamping = 0.8
91      angularDamping = 0
92      scale = "10"
93      collisiondamage = 0
94      enablecollisiondamage = no
95
96    >
97      <attached>
98        <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
99      </attached>
100
101    </MovableEntity>
102
103    <?lua
104      end
105    ?>
106
107 
108   
109  </Scene>
110</Level>
Note: See TracBrowser for help on using the repository browser.