Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 6, 2009, 11:12:01 PM (15 years ago)
Author:
rgrieder
Message:

Added some basic sound classes: WorldSound (to be used for 3D sound, is a WorldEntity) and AmbientSound (BaseObject, just add it somewhere and it will play with playOnLoad=true).
Also moved the sound listener device updating to the HumanController. We might want to modify this again so that the listener is at the camera position again, not at the space ship.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/data/levels/presentation_pong.oxw

    r5891 r5896  
    4646 gametype     = Pong
    4747>
     48  <AmbientSound soundFile="ambient/mainmenu.wav" playOnLoad=true />
     49
    4850  <Scene
    4951   ambientlight = "0.5, 0.5, 0.5"
     
    8284          <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
    8385          <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
     86
     87          <WorldSound name="scoreSound" position="0,0,0" soundFile="sounds/pong_score.wav" >
     88            <events>
     89              <play>
     90                <EventListener event=pongcenter />
     91              </play>
     92            </events>
     93          </WorldSound>
    8494
    8595<?lua
Note: See TracChangeset for help on using the changeset viewer.