Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11620 was 11620, checked in by pascscha, 6 years ago

XML Port

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    <FlappyOrxCenterPoint name=flappyorxcenter />
40   
41   
42
43    <?lua
44      for i = 1, 5, 1 do
45        for j = 3, 12,3 do
46    ?>
47
48        <Template name=Asteroid<?lua print(j) ?>_<?lua print(i) ?>>
49          <MovableEntity
50            collisionType = dynamic
51            linearDamping = 0.8
52            angularDamping = 0
53            scale = "<?lua print(j) ?>"
54            collisiondamage = 10000
55            enablecollisiondamage = true
56          >
57         
58            <attached>
59              <Model mass="1000" mesh="ast<?lua print(i) ?>.mesh" />
60            </attached>
61            <collisionShapes>
62              <SphereCollisionShape radius="<?lua print(j + 5) ?>" />
63            </collisionShapes>
64          </MovableEntity>
65        </Template>
66
67    <?lua
68        end
69      end
70    ?>
71  </Scene>
72</Level>
Note: See TracBrowser for help on using the repository browser.