Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FlappyOrx_HS17/data/levels/FlappyOrx.oxw @ 11509

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

small changes and prep for XML

File size: 2.4 KB
Line 
1<LevelInfo
2 name = "Flappy Orx"
3 description = "TODO"
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/spaceshipFlappyOrx.oxt")
17  include("templates/enemyFlappyOrx.oxt")
18  include("overlays/FlappyOrxHUD.oxo")
19?>
20
21<Level
22  plugins = flappyorx
23  gametype = FlappyOrx
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="0,0,0" lookat="0,0,0" spawnclass=FlappyOrxShip pawndesign=spaceshipFlappyOrx />
46
47   
48    <FlappyOrxCenterPoint name=flappyorxcenter />
49   
50     <?lua
51      for i = 1, 30, 1 do
52        j = math.random()
53    ?>
54
55    <MovableEntity
56      position = "<?lua print(i* 300) ?>,0, <?lua print(j* 200) ?>"
57      collisionType = dynamic
58      linearDamping = 0.8
59      angularDamping = 0
60      scale = "<?lua print(10)?>"
61      collisiondamage = 0
62      enablecollisiondamage = true
63    >
64   
65      <attached>
66        <Model mass="1000" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
67      </attached>
68      <collisionShapes>
69        <SphereCollisionShape radius="<?lua print(10) ?>" />
70      </collisionShapes>
71    </MovableEntity>
72
73     <MovableEntity
74      position = "<?lua print(i* 300) ?>,0,<?lua print(-150 + j* 200) ?>"
75      collisionType = dynamic
76      linearDamping = 0.8
77      angularDamping = 0
78      scale = "<?lua print(10)?>"
79      collisiondamage = 0
80      enablecollisiondamage = true
81    >
82   
83      <attached>
84        <Model mass="1000" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
85      </attached>
86      <collisionShapes>
87        <SphereCollisionShape radius="<?lua print(10) ?>" />
88      </collisionShapes>
89    </MovableEntity>
90
91    <?lua
92      end
93    ?>
94   
95   
96  </Scene>
97</Level>
98
Note: See TracBrowser for help on using the repository browser.