Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1.  
  2. /**
  3. * Adds sound effects to the overall game
  4. *
  5. * @Jennifer Kim, Brandon Zhang
  6. * @6/1/17
  7. */
  8.  
  9. import java.awt.*;
  10. import java.awt.event.*;
  11.  
  12. import javax.swing.*;
  13.  
  14. public class Sound extends JFrame
  15. {
  16. private SoundFX spaceship;
  17. private int time;
  18. private String name;
  19.  
  20. public Sound(String name)
  21. {
  22. super("Sound");
  23. spaceship = new SoundFX(name);
  24. spaceship.play();
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement