Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/weaponFS15/data/levels/Invaders.oxw @ 10326

Last change on this file since 10326 was 9954, checked in by landauf, 11 years ago

moved all invader enemy templates into one file. fixed warning about duplicate definition of "spaceshipescortengine"

  • Property svn:eol-style set to native
File size: 2.1 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("overlays/InvaderHUD.oxo")
18?>
19
20<Level gametype = Invader>
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24  <?lua include("includes/notifications.oxi") ?>
25
26    <!-- ambientlight = "0.8, 0.8, 0.8"
27    skybox       = "Orxonox/Starbox" -->
28  <Scene
29    ambientlight = "0.8, 0.7, 0.4"
30    skybox     = "Orxonox/skyBoxBasic"
31  >
32
33  <WorldAmbientSound
34    source="Earth.ogg"
35    looping="true"
36    playOnLoad="true"
37  />
38
39    <!-- <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"/> -->
40    <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" />
41    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=InvaderShip pawndesign=spaceshipinvader />
42
43    <DistanceTrigger name="start" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=0 />
44
45
46    <InvaderCenterPoint name=invadercenter />
47   
48    <?lua
49      for i = 1, 300, 1 do
50        j = math.random()
51    ?>
52
53    <MovableEntity
54      position = "<?lua print(math.random()* 40000 + 1000) ?>,-1000,<?lua print(math.random() * 4000 - 2000) ?>"
55      collisionType = dynamic
56      linearDamping = 0.8
57      angularDamping = 0
58      scale = "<?lua print(j * 150)?>"
59      collisiondamage = 0
60      enablecollisiondamage = true
61    >
62      <attached>
63        <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
64      </attached>
65      <collisionShapes>
66        <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
67      </collisionShapes>
68    </MovableEntity>
69
70    <?lua
71      end
72    ?>
73   
74  </Scene>
75</Level>
76
Note: See TracBrowser for help on using the repository browser.