Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7854 for code/trunk/data


Ignore:
Timestamp:
Feb 11, 2011, 1:03:47 PM (13 years ago)
Author:
landauf
Message:

detached AmbientSound from BaseObject - AmbientSound can not be placed directly in a level file anymore
instead added WorldAmbientSound, a BaseObject which can be placed in a level file to create and control ambient sound

with this change, the level can be destroyed completely because WorldAmbientSound can be deleted immediately at the end of the level, while the AmbientSound remains active until it faded out.

Location:
code/trunk/data/levels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/levels/presentationHS09b.oxw

    r7679 r7854  
    3535  >
    3636
    37     <AmbientSound ambientSource="Mars.ogg" looping="true" playOnLoad="true" />
     37    <WorldAmbientSound source="Mars.ogg" looping="true" playOnLoad="true" />
    3838
    3939   <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" />
     
    256256    <?lua end ?>
    257257
    258     <AmbientSound ambientSource="Earth.ogg" looping="true" playOnLoad="false">
     258    <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="false">
    259259      <events>
    260260        <activity>
     
    262262        </activity>
    263263      </events>
    264     </AmbientSound>
     264    </WorldAmbientSound>
    265265
    266266    <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff  team=0 />
  • code/trunk/data/levels/presentationPong.oxw

    r7853 r7854  
    5151  </templates>
    5252
    53   <AmbientSound ambientSource="mainmenu.ogg" playOnLoad=true />
     53  <WorldAmbientSound source="mainmenu.ogg" playOnLoad=true />
    5454
    5555  <Scene
  • code/trunk/data/levels/sound.oxw

    r7679 r7854  
    2929  >
    3030
    31   <AmbientSound ambientSource="Earth.ogg" looping="true" playOnLoad="true" />
    32   <AmbientSound ambientSource="Mars.ogg" looping="true">
     31  <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" />
     32  <WorldAmbientSound source="Mars.ogg" looping="true">
    3333    <events>
    3434      <activity>
     
    4040      </activity>
    4141    </events>
    42   </AmbientSound>
    43   <AmbientSound ambientSource="Jupiter.ogg" looping="true">
     42  </WorldAmbientSound>
     43  <WorldAmbientSound source="Jupiter.ogg" looping="true">
    4444    <events>
    4545      <activity>
     
    5151      </activity>
    5252    </events>
    53   </AmbientSound>
     53  </WorldAmbientSound>
    5454
    5555
Note: See TracChangeset for help on using the changeset viewer.