Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. @Override
  2. public void onModuleLoad() {
  3. //Lots of stuff omitted
  4. rm.addImage("images/GUI/blue/title-bar-right.png", "images/GUI/blue/title-bar-right.png");
  5. rm.addImage("images/GUI/blue/title-bar-left.png", "images/GUI/blue/title-bar-left.png");
  6. rm.addAudio("wombo", "audio/wc.wav"); // <---
  7. }
  8.  
  9. public void doResourceManagerLoadComplete() {
  10. //Lots of stuff omitted
  11.  
  12.  
  13.  
  14.  
  15. engine.getResourceManager().getAudio("wombo").play(50); <--- plays the audio at half volume
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement