The goal is this - in the game there will be music playing - say 20 tunes, the order in which those tunes are to be played is random. The playing of music is initiated by finding a radio in one scene. When the player leaves the scene the tunes will continue to be played unless the player turns off music as a menu item.
My question is this does the code which checks to see if music is playing have to exist in the main game loop ? I really don't like clutter in the main loop itself. Is is possible to create a method which will be persitent = eg it can check the state of a "do you want to hear music" global variable - or is there a nice neat and obvisous way to solve this.
My thinking for randomness is that music played will be stored in an array until such time as all the tunes have been played - then the whole thing will re-initialise.
Sorry for the ramble