Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/presentation_pong.oxw @ 5418

Last change on this file since 5418 was 5418, checked in by landauf, 15 years ago

camera adjustments

  • Property svn:eol-style set to native
File size: 5.1 KB
Line 
1<?lua
2  include("levels/hudtemplates3.oxw")
3  include("overlay/stats.oxo")
4  include("levels/spaceshiptemplates_presentation.oxw")
5?>
6
7<Template name=pongbatcameras defaults=0>
8  <PongBat>
9    <camerapositions>
10      <CameraPosition position="0,200,0" pitch=-90 absolute=true />
11      <CameraPosition position="0,50,160" drag=true mouselook=true />
12      <CameraPosition position="0,40,125" drag=true mouselook=true />
13      <CameraPosition position="0,30, 90" drag=true mouselook=true />
14    </camerapositions>
15  </PongBat>
16</Template>
17
18<Template name=pongbat>
19  <PongBat camerapositiontemplate=pongbatcameras>
20    <attached>
21      <Model mesh="cube.mesh" scale3D="14,2,2" />
22    </attached>
23  </PongBat>
24</Template>
25
26<Template name=pongball>
27  <PongBall>
28    <attached>
29      <Model mesh="sphere.mesh" scale=2 />
30      <!--Billboard scale=0.2 colour="1.0, 1.0, 0.5" material="Examples/Flare" /-->
31      <Backlight scale=0.2 colour="1.0, 1.0, 0.5" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
32    </attached>
33  </PongBall>
34</Template>
35
36
37<Level
38 name         = "Presentation"
39 description  = "A simple testlevel"
40 gametype     = Pong
41>
42  <Scene
43   ambientlight = "0.5, 0.5, 0.5"
44   skybox       = "Orxonox/skypanoramagen1"
45  >
46    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
47
48<?lua
49for i = 1, 10, 1
50do ?>
51    <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
52<?lua
53end
54?>
55
56    <MovableEntity rotationrate=5 rotationaxis="0,0,1">
57      <attached>
58        <PongCenterpoint dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 batspeed=130 batlength=0.25>
59          <attached>
60            <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" />
61            <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" />
62          </attached>
63        </PongCenterpoint>
64      </attached>
65    </MovableEntity>
66
67<?lua
68for i = 1, 10, 1
69do ?>
70  <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 100 + 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
71    <attached>
72      <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
73    </attached>
74  </MovableEntity>
75  <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * -100 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
76    <attached>
77      <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
78    </attached>
79  </MovableEntity>
80
81  <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 100 + 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
82    <attached>
83      <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
84    </attached>
85  </MovableEntity>
86  <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * -100 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
87    <attached>
88      <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
89    </attached>
90  </MovableEntity>
91
92  <MovableEntity position="<?lua print(math.random() * 100 + 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
93    <attached>
94      <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
95    </attached>
96  </MovableEntity>
97  <MovableEntity position="<?lua print(math.random() * -100 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
98    <attached>
99      <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
100    </attached>
101  </MovableEntity>
102<?lua
103end
104?>
105
106  </Scene>
107</Level>
Note: See TracBrowser for help on using the repository browser.