Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/Invaders.oxw @ 10003

Last change on this file since 10003 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
RevLine 
[9698]1<LevelInfo
[9866]2 name = "Orxonox Arcade"
[9874]3 description = "2D Arcade shooter. Maximise your points!!!\nTip: try to keep the multiplier high by avoiding shots and enemies."
[9866]4 tags = "minigame"
[9905]5 screenshot = "orxonoxArcade.png"
[9698]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")
[9701]15  include("templates/spaceshipInvader.oxt")
[9777]16  include("templates/enemyInvader.oxt")
[9828]17  include("overlays/InvaderHUD.oxo")
[9698]18?>
19
[9701]20<Level gametype = Invader>
[9698]21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24  <?lua include("includes/notifications.oxi") ?>
25
[9868]26    <!-- ambientlight = "0.8, 0.8, 0.8"
27    skybox       = "Orxonox/Starbox" -->
[9698]28  <Scene
[9868]29    ambientlight = "0.8, 0.7, 0.4"
30    skybox     = "Orxonox/skyBoxBasic"
[9698]31  >
32
[9884]33  <WorldAmbientSound
34    source="Earth.ogg"
35    looping="true"
36    playOnLoad="true"
37  />
38
[9868]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" />
[9709]41    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=InvaderShip pawndesign=spaceshipinvader />
42
[9724]43    <DistanceTrigger name="start" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=0 />
44
45
[9709]46    <InvaderCenterPoint name=invadercenter />
[9698]47   
[9724]48    <?lua
[9777]49      for i = 1, 300, 1 do
50        j = math.random()
[9724]51    ?>
52
53    <MovableEntity
[9828]54      position = "<?lua print(math.random()* 40000 + 1000) ?>,-1000,<?lua print(math.random() * 4000 - 2000) ?>"
[9724]55      collisionType = dynamic
56      linearDamping = 0.8
57      angularDamping = 0
58      scale = "<?lua print(j * 150)?>"
[9777]59      collisiondamage = 0
[9724]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   
[9698]74  </Scene>
75</Level>
76
Note: See TracBrowser for help on using the repository browser.