Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Presentation_HS17/data/levels/FlappyOrx.oxw @ 11747

Last change on this file since 11747 was 11678, checked in by patricwi, 7 years ago

merged FlappyOrx and SOBv2

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