Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11505 was 11504, checked in by merholzl, 7 years ago

asteroid spawn placement

  • Property svn:eol-style set to native
File size: 2.7 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    <Model position="0,0,0" mesh="Coordinates.mesh" scale="20"/>
49
50    <InvaderCenterPoint name=invadercenter />
51   
52    <?lua
53      for i = 1, 30, 1 do
54        j = math.random()
55    ?>
56
57    <MovableEntity
58      position = "<?lua print(i* 3000) ?>,0, <?lua print(j* 200) ?>"
59      collisionType = dynamic
60      linearDamping = 0.8
61      angularDamping = 0
62      scale = "<?lua print(10)?>"
63      collisiondamage = 0
64      enablecollisiondamage = true
65    >
66   
67      <attached>
68        <Model mass="1000" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
69      </attached>
70      <collisionShapes>
71        <SphereCollisionShape radius="<?lua print(10) ?>" />
72      </collisionShapes>
73    </MovableEntity>
74
75     <MovableEntity
76      position = "<?lua print(i* 3000) ?>,0,<?lua print(-150 + j* 200) ?>"
77      collisionType = dynamic
78      linearDamping = 0.8
79      angularDamping = 0
80      scale = "<?lua print(10)?>"
81      collisiondamage = 0
82      enablecollisiondamage = true
83    >
84   
85      <attached>
86        <Model mass="1000" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
87      </attached>
88      <collisionShapes>
89        <SphereCollisionShape radius="<?lua print(10) ?>" />
90      </collisionShapes>
91    </MovableEntity>
92
93    <?lua
94      end
95    ?>
96   
97  </Scene>
98</Level>
99
Note: See TracBrowser for help on using the repository browser.