Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2/data/levels/sound.oxw @ 6214

Last change on this file since 6214 was 6191, checked in by rgrieder, 15 years ago

Moved sound listener to the active camera and fixed the ambient distance trigger (now acts on cameras and we only have one in a Scene so far).

  • Property svn:eol-style set to native
File size: 986 bytes
Line 
1<?lua
2  include("stats.oxo")
3  include("hudtemplates3.oxo")
4?>
5
6<?lua
7  include("templates/spaceship_assff.oxt")
8  include("templates/spaceship_pirate.oxt")
9?>
10
11<Level
12 name         = "Sample"
13 description  = "Just a few tests"
14>
15  <Scene
16    ambientlight = "0.8, 0.8, 0.8"
17    skybox       = "Orxonox/Starbox"
18  >
19
20  <AmbientSound ambientSource="Mars.ogg" loop="true" play="true" />
21  <AmbientSound ambientSource="Asteroid_rocks.ogg" loop="true" play="false">
22        <events>
23                <activity>
24                        <DistanceTrigger position="300,100,0" distance=200 target="Camera">
25                                <attached>
26                                        <ParticleSpawner position="0,0,0" source="Orxonox/fire3" lifetime=0 loop=0 autostart=1 />
27                                </attached>
28                        </DistanceTrigger>
29                </activity>
30        </events>
31  </AmbientSound>
32
33  <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" />
34  <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
35  </Scene>
36</Level>
Note: See TracBrowser for help on using the repository browser.