Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Changed "source" parameter of AmbientSound to "ambientSource" to restore consistency with the c++ methods.
Adjusted sound.oxw file.

Also moved XML ports form WorldSound/AmbientSound to BaseSound::XMLPortExtern.
To make that work, I had to insert a dynamic_cast into the XMLPortParamGeneric macro. Shouldn't be a problem though. Just don't use XMLPortParam inside a class that might not be a BaseObject (at least dynamically).

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
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="ControllableEntity">
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.