Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/invaders/data/levels/Invaders.oxw @ 9868

Last change on this file since 9868 was 9868, checked in by zifloria, 10 years ago

End game screen. Eye candy. Gameplay tweaks

File size: 2.0 KB
Line 
1<LevelInfo
2 name = "Orxonox Arcade"
3 description = "Arcade shooter. Maximise your points!!!"
4 tags = "minigame"
5 screenshot = "emptylevel.png"
6/>
7<!-- include("HUDTemplates3.oxo") -->
8<?lua
9  include("stats.oxo")
10  include("templates/lodInformation.oxt")
11?>
12
13<?lua
14  include("templates/spaceshipAssff2.oxt")
15  include("templates/spaceshipPirate.oxt")
16  include("templates/spaceshipInvader.oxt")
17  include("templates/enemyInvader.oxt")
18  include("overlays/InvaderHUD.oxo")
19?>
20
21<Level gametype = Invader>
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
30    ambientlight = "0.8, 0.7, 0.4"
31    skybox     = "Orxonox/skyBoxBasic"
32  >
33
34    <!-- <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"/> -->
35    <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" />
36    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=InvaderShip pawndesign=spaceshipinvader />
37
38    <DistanceTrigger name="start" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=0 />
39
40
41    <InvaderCenterPoint name=invadercenter />
42   
43    <?lua
44      for i = 1, 300, 1 do
45        j = math.random()
46    ?>
47
48    <MovableEntity
49      position = "<?lua print(math.random()* 40000 + 1000) ?>,-1000,<?lua print(math.random() * 4000 - 2000) ?>"
50      collisionType = dynamic
51      linearDamping = 0.8
52      angularDamping = 0
53      scale = "<?lua print(j * 150)?>"
54      collisiondamage = 0
55      enablecollisiondamage = true
56    >
57      <attached>
58        <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
59      </attached>
60      <collisionShapes>
61        <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
62      </collisionShapes>
63    </MovableEntity>
64
65    <?lua
66      end
67    ?>
68   
69  </Scene>
70</Level>
71
Note: See TracBrowser for help on using the repository browser.