Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11596 was 11596, checked in by merholzl, 6 years ago

Cleanup of level files

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