Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/sound3/data/levels/sound.oxw @ 6079

Last change on this file since 6079 was 6031, checked in by youngk, 15 years ago

Implemented automatic ambient sound file path fetch according to current mood.
Valid moods are: default and dnb
BUG Loading of a second sound fails (independent of the file used). Probably an error in BaseSound::setSource().

File size: 1.0 KB
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  <AmbientSound source="mainmenu.wav" loop="true" playOnLoad="true" />
20  <AmbientSound source="CoreWave.wav" loop="true" playOnLoad="false">
21        <events>
22                <activity>
23                        <DistanceTrigger position="300,100,0" distance=200 target="ControllableEntity">
24                                <attached>
25                                        <ParticleSpawner position="0,0,0" source="Orxonox/fire3" lifetime=0 loop=0 autostart=1 />
26                                </attached>
27                        </DistanceTrigger>
28                </activity>
29        </events>
30  </AmbientSound>
31    <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" />
32    <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate />
33  </Scene>
34</Level>
Note: See TracBrowser for help on using the repository browser.