Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FlappyOrx_HS17/data/levels/Invaders.oxw @ 11503

Last change on this file since 11503 was 11503, checked in by pascscha, 7 years ago

MoveUpDown

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