Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

XML Ports and cleanUp

File size: 1.7 KB
Line 
1<LevelInfo
2 name = "Flappy Orx"
3 description = "A clone of the iconic Flappy Bird"
4 tags = "minigame"
5 screenshot = "orxonoxArcade.png"
6/>
7<FlappyOrx
8      spawnDistance=50
9      Speed = 700 />
10<?lua
11  include("includes/notifications.oxi")
12  include("templates/lodInformation.oxt")
13  include("templates/spaceshipFlappyOrx.oxt")
14  include("overlays/FlappyOrxHUD.oxo")
15
16?>
17
18<Level
19  plugins = flappyorx
20  gametype = FlappyOrx
21>
22  <templates>
23    <Template link=lodtemplate_default />
24  </templates>
25
26  <Scene
27    ambientlight = "0.8, 0.7, 0.4"
28    skybox     = "Orxonox/skyBoxBasic"
29  >
30  <WorldAmbientSound
31    source="Earth.ogg"
32    looping="true"
33    playOnLoad="true"
34  />
35
36 <Light type=directional position="11000, 11000, -7000" lookat="0, 0, 0" diffuse="1, 1, 1, 1" specular="1.0, 0.9, 0.9, 1.0" />
37    <SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=FlappyOrxShip pawndesign=spaceshipFlappyOrx />
38
39   
40    <FlappyOrxCenterPoint name=flappyorxcenter />
41   
42   
43
44    <?lua
45      for i = 1, 5, 1 do
46        for j = 3, 12,3 do
47    ?>
48
49        <Template name=Asteroid<?lua print(j) ?>_<?lua print(i) ?>>
50          <MovableEntity
51            collisionType = dynamic
52            linearDamping = 0.8
53            angularDamping = 0
54            scale = "<?lua print(j) ?>"
55            collisiondamage = 10000
56            enablecollisiondamage = true
57          >
58         
59            <attached>
60              <Model mass="1000" mesh="ast<?lua print(i) ?>.mesh" />
61            </attached>
62            <collisionShapes>
63              <SphereCollisionShape radius="<?lua print(j + 5) ?>" />
64            </collisionShapes>
65          </MovableEntity>
66        </Template>
67
68    <?lua
69        end
70      end
71    ?>
72  </Scene>
73</Level>
Note: See TracBrowser for help on using the repository browser.