Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10179 was 9903, checked in by zifloria, 11 years ago

level preview

File size: 2.2 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"
[9903]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")
[9874]17  include("templates/enemyInvaderShooter.oxt")
[9828]18  include("overlays/InvaderHUD.oxo")
[9698]19?>
20
[9701]21<Level gametype = Invader>
[9698]22  <templates>
23    <Template link=lodtemplate_default />
24  </templates>
25  <?lua include("includes/notifications.oxi") ?>
26
[9868]27    <!-- ambientlight = "0.8, 0.8, 0.8"
28    skybox       = "Orxonox/Starbox" -->
[9698]29  <Scene
[9868]30    ambientlight = "0.8, 0.7, 0.4"
31    skybox     = "Orxonox/skyBoxBasic"
[9698]32  >
33
[9884]34  <WorldAmbientSound
35    source="Earth.ogg"
36    looping="true"
37    playOnLoad="true"
38  />
39
[9868]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" />
[9709]42    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=InvaderShip pawndesign=spaceshipinvader />
43
[9724]44    <DistanceTrigger name="start" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=0 />
45
46
[9709]47    <InvaderCenterPoint name=invadercenter />
[9698]48   
[9724]49    <?lua
[9777]50      for i = 1, 300, 1 do
51        j = math.random()
[9724]52    ?>
53
54    <MovableEntity
[9828]55      position = "<?lua print(math.random()* 40000 + 1000) ?>,-1000,<?lua print(math.random() * 4000 - 2000) ?>"
[9724]56      collisionType = dynamic
57      linearDamping = 0.8
58      angularDamping = 0
59      scale = "<?lua print(j * 150)?>"
[9777]60      collisiondamage = 0
[9724]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   
[9698]75  </Scene>
76</Level>
77
Note: See TracBrowser for help on using the repository browser.