sound.bmx 939 B

1234567891011121314151617181920212223242526
  1. '===============================================================================
  2. ' Little Shooty Test Thing
  3. ' Code & Stuff by Richard Olpin ([email protected])
  4. '===============================================================================
  5. ' Sound & Music
  6. '===============================================================================
  7. Global player_shot, playerdie
  8. Global bombfall
  9. Global explode, SoundChannel, TempChannel
  10. Global music, MusicChannel
  11. Function InitSound()
  12. player_shot = LoadSound("sound/shot-1.wav", 0)
  13. playerdie = LoadSound("sound/explosion1.wav", 0)
  14. explode = LoadSound("sound/explode.wav", 0)
  15. bombfall = LoadSound("sound/bombfall.wav", 0)
  16. SoundChannel=0'AllocChannel()
  17. MusicChannel=AllocChannel()
  18. ' music=LoadSound("sound/music.ogg",1)
  19. EndFunction
  20. '===============================================================================
  21. '
  22. '===============================================================================