1 / 7

Game Art & Sound

Game Art & Sound. Sound. Midi files Musical Instrument Digital Interface Advantages small fast Disadvantages synthesized rendered. Wav files Waveform Audio Advantage sampled direct Disadvantages big slow. Sound. Sound Effects wav files at http://www.thepocket.com/sounds.htm

Download Presentation

Game Art & Sound

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Game Art & Sound

  2. Sound • Midi files • Musical Instrument Digital Interface • Advantages • small • fast • Disadvantages • synthesized • rendered • Wav files • Waveform Audio • Advantage • sampled • direct • Disadvantages • big • slow

  3. Sound • Sound Effects • wav files at http://www.thepocket.com/sounds.htm • midi files at http://www.mididb.com/ • multimedia lab at 016 Old Chem for more advanced editing and samplinghttp://www.oit.duke.edu/ats/mps/hardware.html

  4. Sound in Java • Create a URL (examples taken from SplashScreens of Beat The Bugs!)private static final URL START_GAME_URL= SplashScreens.class.getResource("audio/destruction.wav"); • Create AudioClipstartSound=JApplet.newAudioClip(START_GAME_URL); • Play the Audio Clipif(GameLoop.audible) startSound.play();

  5. Sound in Java • Create only as many AudioClips as you'd like to play at once. Replay rather than recreate AudioClips. • Use the loop methods of AudioClip to repeat a clip continously, and stop to terminate the playing clip. • Be sure to check GameLoop.audible • Use the getResource method in order to generate the URL. This will make sound (images) work on your applet by loading the files from the jar.

  6. Game Art • Use Paint or a similar application to draw your own images. • Extend Sprite and make a custom shape for fast sprites (ImageSprites take longer). • Transparency makes ImageSprites really come alive. • Crop out portions of the image to be transparent by • painting a uniform color on what is to become transparent • save the image as a gif • use TransWeb http://www.mit.edu/transweb.html

  7. Animated Gifs • Make your own animated gifs to go on buttonshttp://www.gifworks.com/ • Make your own animated texthttp://www.cooltext.com/

More Related