Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Presentation_HS17_merge/data/levels/FlappyOrx.oxw @ 11756

Last change on this file since 11756 was 11756, checked in by landauf, 6 years ago

[FlappyOrx_HS17] avoid warning when loading level

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