Download Jam-O-Drum - Entertainment Technology Center
Transcript
Everything You Ever Wanted to Know (and More) About Jam-O-Drum 4.0 Another useful feature of JAlice is its built in ability to change objects textures on the fly (as well as other characteristics). This was most helpful when displaying scores. Each number of the score (up to 7 digits) is an object textured with a “0” at the start of the Musica game. The JAlice world had textures with the numbers 0 through 9 imported, waiting to be used. When the score needed to be changed, a PropertyAnimation was used to switch the seven textures to the textures of the correct numbers. (To activate any animations, they need to be passed as a parameter in the run(animation) command.) Last, JAlice provides simple support for playing of WAV and MP3 files. By running a SoundAnimation animation with the sound as a parameter, the sound is played. Any sound that is imported in the JAlice world can be played this way from the world script. One of these calls looks like this: run(SoundAnimation(blockHit1)) Where blockHit1 is a sound in the Musica world. There is a tradeoff to think about between using WAV files and using MP3 files. MP3 files are relatively small, but need to be decompressed in real time, while WAV files consume inordinate amounts of memory but do not need to be compressed, more on this later. 9.3. Musica Application Source 9.3.1. Java The core of the Musica edu.cmu.etc.jamodrum.musica. software is the main Java package As a part of the object-oriented software design process, an initial UML static class diagram was produced that shows the internal and external relationships of the classes. A hard copy is available in the diagrams and schematics appendix. 9.3.1.1. Main Classes Driver Driver handles the main loop of the game, regulating the state and the thread sleep time. This class is created by the control panel when the user selects the Musica experience. 10/30/01 A Study in Project Management 51