Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / In Game Music Function

Author
Message
_ RealUnReal _
19
Years of Service
User Offline
Joined: 8th Jan 2005
Location: Dudley, UK
Posted: 24th Jan 2005 10:09
Here it is



Explanation:
Store all your mp3 music in a subfolder called 'music\'
The innitialize function scans the 'music\' directory for all mp3 files and stores the file name of each one in the music(0) array, it is then from this array that music is randomly loaded and played during your game.

Just pop 'Process_music()' into all game loops so that music can be played non stop.

RealUnReal

Login to post a reply

Server time is: 2024-11-23 17:28:32
Your offset time is: 2024-11-23 17:28:32