Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/portals/data/levels/portals.oxw @ 8278

Last change on this file since 8278 was 8278, checked in by anbueche, 13 years ago

flares as billboard

File size: 5.1 KB
Line 
1 
2<LevelInfo
3 name = "Portals"
4 description = "Level for testing portals"
5 tags = "tutorial"
6/>
7
8<?lua
9  include("HUDTemplates3.oxo")
10  include("stats.oxo")
11  include("templates/spaceshipAssff.oxt")
12  include("templates/lodInformation.oxt")
13?>
14
15<Level
16 name         = "Presentation"
17 description  = "A simple testlevel"
18>
19  <templates>
20    <Template link=lodtemplate_default />
21  </templates>
22
23  <Scene
24   ambientlight = "0.5, 0.5, 0.5"
25   skybox       = "Orxonox/skypanoramagen1"
26  >
27
28    <Template name=portalEventTemplate>
29        <PortalEndPoint>
30            <events>
31                <execute>
32                    <EventListener event="portal" />
33                </execute>
34            </events>
35        </PortalEndPoint>
36    </Template>
37
38    <Template name=portalDefault>
39        <PortalEndPoint>
40            <attached>
41                <Billboard material="Examples/Flare" />
42            </attached>
43        </PortalEndPoint>
44    </Template>
45
46    <PortalEndPoint position="0,0,0" id="1" distance="40" target="MobileEntity" design="portalDefault" eventTemplate="portalEventTemplate" />
47    <PortalEndPoint position="-400,0,0" id="2" distance="40" lookat="0,100,0" target="MobileEntity" design="portalDefault" eventTemplate="portalEventTemplate" />
48    <PortalLink fromID="1" toID="2" />
49    <PortalLink fromID="2" toID="1" />
50
51    <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" />
52
53    <SpawnPoint position="200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
54
55    <GlobalShader compositor="Bloom" visible=false>
56      <events>
57        <visibility>
58          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
59        </visibility>
60      </events>
61    </GlobalShader>
62
63
64<!--
65    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
66    <StaticEntity position="0,0,0" collisionType=static>
67      <collisionShapes>
68        <SphereCollisionShape radius="20" />
69      </collisionShapes>
70    </StaticEntity>
71-->
72
73
74<!--
75    <?lua
76      for i = 1, 70, 1 do
77    ?>
78      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
79        <attached>
80          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
81        </attached>
82      </MovableEntity>
83      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
84        <attached>
85          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
86        </attached>
87      </MovableEntity>
88
89      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
90        <attached>
91          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
92        </attached>
93      </MovableEntity>
94      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
95        <attached>
96          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
97        </attached>
98      </MovableEntity>
99
100      <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
101        <attached>
102          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
103        </attached>
104      </MovableEntity>
105      <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
106        <attached>
107          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
108        </attached>
109      </MovableEntity>
110    <?lua end ?>
111-->
112
113  </Scene>
114</Level>
Note: See TracBrowser for help on using the repository browser.