Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentationHS13/data/levels/Invaders.oxw @ 9918

Last change on this file since 9918 was 9905, checked in by smerkli, 11 years ago

Florian forgot to change something, now screenshot should work

File size: 2.2 KB
Line 
1<LevelInfo
2 name = "Orxonox Arcade"
3 description = "2D Arcade shooter. Maximise your points!!!\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/spaceshipInvader.oxt")
16  include("templates/enemyInvader.oxt")
17  include("templates/enemyInvaderShooter.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  <WorldAmbientSound
35    source="Earth.ogg"
36    looping="true"
37    playOnLoad="true"
38  />
39
40    <!-- <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"/> -->
41    <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" />
42    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=InvaderShip pawndesign=spaceshipinvader />
43
44    <DistanceTrigger name="start" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=0 />
45
46
47    <InvaderCenterPoint name=invadercenter />
48   
49    <?lua
50      for i = 1, 300, 1 do
51        j = math.random()
52    ?>
53
54    <MovableEntity
55      position = "<?lua print(math.random()* 40000 + 1000) ?>,-1000,<?lua print(math.random() * 4000 - 2000) ?>"
56      collisionType = dynamic
57      linearDamping = 0.8
58      angularDamping = 0
59      scale = "<?lua print(j * 150)?>"
60      collisiondamage = 0
61      enablecollisiondamage = true
62    >
63      <attached>
64        <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
65      </attached>
66      <collisionShapes>
67        <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
68      </collisionShapes>
69    </MovableEntity>
70
71    <?lua
72      end
73    ?>
74   
75  </Scene>
76</Level>
77
Note: See TracBrowser for help on using the repository browser.