Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/underAttack.oxw @ 8916

Last change on this file since 8916 was 8916, checked in by baermatt, 13 years ago

Associated each screenshot to the correct level

  • Property svn:eol-style set to native
File size: 6.1 KB
Line 
1<LevelInfo
2 name = "UnderAttack testing"
3 description = "A simple testlevel"
4 screenshot = "underattack.png"
5/>
6
7<?lua
8  include("HUDTemplates3.oxo")
9  include("stats.oxo")
10  include("underAttackHUD.oxo")
11  include("templates/spaceshipAssff.oxt")
12  include("templates/lodInformation.oxt")
13?>
14
15<Level
16 name         = "UnderAttack testing"
17 description  = "A simple testlevel"
18 gametype     = UnderAttack
19>
20  <templates>
21    <Template link=lodtemplate_default />
22  </templates>
23  <?lua include("includes/notifications.oxi") ?>
24
25  <Scene
26   ambientlight = "0.5, 0.5, 0.5"
27   skybox       = "Orxonox/skypanoramagen1"
28  >
29    <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" />
30
31    <?lua for i = 1, 30, 1 do ?>
32      <MovableEntity
33          position="<?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>, <?lua print(math.random() * 10000 - 5000) ?>"
34          velocity="<?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>, <?lua print(math.random() * 500 - 250) ?>"
35      >
36        <attached>
37          <Model
38              <?lua x = math.random() * 150 + 30 ?>
39              scale="<?lua print(x) ?>"
40              mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"
41              position="0,0,0"
42          />
43        </attached>
44          <collisionShapes>
45            <SphereCollisionShape radius="<?lua print(x) ?>" position="0,0,0" />
46          </collisionShapes>
47      </MovableEntity>
48    <?lua end ?>
49
50    <Destroyer
51      position          = "100,150,0"
52      collisionType     = dynamic
53      mass              = 100000
54      velocity          = "-35,0,0"
55      angularDamping    = 0.9999999
56      health            = 10000
57      maxhealth         = 10000
58      initialhealth     = 10000
59    >
60
61      <attached>
62        <TeamSpawnPoint team=1 position="150,0,7" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
63        <TeamSpawnPoint team=1 position="0,0,7" lookat="-1,0,0" roll="90"  yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
64        <TeamSpawnPoint team=1 position="-50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
65        <TeamSpawnPoint team=1 position="100,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
66        <TeamSpawnPoint team=1 position="50,0,7" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />
67        <?lua for i = 1, 100, 1 do ?>
68          <TeamSpawnPoint
69            team=0
70            position="<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>"
71            lookat="0,0,0"
72            spawnclass=SpaceShip
73            pawndesign=spaceshipassff
74          />
75
76          <!--more spawnpoints for team1-->
77          <!--
78          <TeamSpawnPoint
79            team=1 position="<?lua print((math.random() * 500 + 500)) ?>,<?lua print((math.random() * 500 + 500) ) ?>,<?lua print((math.random() * 500 + 500)) ?>"
80            lookat="0,0,0"
81            spawnclass=SpaceShip
82            pawndesign=spaceshipassff
83          />-->
84        <?lua end ?>
85
86        <Model mesh="Carrier.mesh" scale="5" />
87        <Backlight
88          mainstate=activity
89          active=false
90          scale=0.4
91          name=bltest
92          position=" 7.6, 0, 6"
93          colour="0.2, 0.65, 1.0, 1.0"
94          width=15
95          length=1500
96          lifetime=2
97          elements=50
98          trailmaterial="Trail/backlighttrail"
99          turnontime=1
100          turnofftime=1
101          material="Flares/ThrusterFlare1"
102        />
103        <?lua for i=0,8,1 do ?>
104          <BlinkingBillboard
105            position="<?lua print(200-270/8*i)?> ,15,2"
106            material="Examples/Flare"
107            colour="1.0, 0.5, 0.3"
108            phase="<?lua print(-360/8*i)?>"
109            amplitude=0.1
110            frequency=0.5
111            quadratic=1
112          />
113
114          <BlinkingBillboard
115            position="<?lua print(200-270/8*i)?>,-15,2"
116            material="Examples/Flare"
117            colour="1.0, 0.5, 0.3"
118            phase="<?lua print(-360/8*i)?>"
119            amplitude=0.1
120            frequency=0.5
121            quadratic=1
122          />
123        <?lua end ?>
124
125        <Backlight
126          scale=1
127          position=" 169, 75, -15"
128          colour="1, 0.85, 0.5, 0.5"
129          width=40
130          length=1000
131          lifetime=5
132          elements=15
133          trailmaterial="Trail/backlighttrail"
134          material="Examples/Flare"
135        />
136        <Backlight
137          scale=1
138          position=" 169, -75, -15"
139          colour="1, 0.85, 0.5, 0.5"
140          width=40
141          length=1000
142          lifetime=5
143          elements=15
144          trailmaterial="Trail/backlighttrail"
145          material="Examples/Flare" />
146      </attached>
147      <collisionShapes>
148        <BoxCollisionShape position="70,0,-25"      halfExtents="150, 50, 25" />
149        <BoxCollisionShape position="95,75,-16"     halfExtents="70, 10, 12" />
150        <BoxCollisionShape position="95,-75,-16"    halfExtents="70, 10, 12" />
151        <BoxCollisionShape position="77,47,30"      halfExtents="110, 2, 30" />
152        <BoxCollisionShape position="77,-47,30"     halfExtents="110, 2, 30" />
153        <BoxCollisionShape position="77,0,50"       halfExtents="110, 45, 6" />
154        <BoxCollisionShape position="167,0,70"      halfExtents="17, 20, 20" />
155      </collisionShapes>
156    </Destroyer>
157
158    <GlobalShader compositor="Bloom" visible=false>
159      <events>
160        <visibility>
161          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
162        </visibility>
163      </events>
164    </GlobalShader>
165
166    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
167    <StaticEntity position="0,0,0" collisionType=static>
168      <collisionShapes>
169        <SphereCollisionShape radius="20" />
170      </collisionShapes>
171    </StaticEntity>
172   
173  </Scene>
174</Level>
Note: See TracBrowser for help on using the repository browser.