- Setup One sound for every object
- This allows simultaneous sounds for all objects
- Setup arrays for similar objects
- Setup the appropriate looping for each object
- Load all the files e.g. droid, wall and crates
- Develop code that triggers each sound
One sound for every object
Maxim maxim;AudioPlayer droidSound, wallSound;
AudioPlayer[] crateSounds;
Use arrays for similar objects
crates = new Body[7];crates[0] = physics.createRect(300, height-crateSize, 300+crateSize, height);
Sound Logic Pseudo-code
test for each object typecue player
set speed of sound based on impulse
play wall sound
No comments:
Post a Comment