Page 1 of 1

How Does the Music Work

Posted: Sun Mar 02, 2008 7:12 pm
by Lexen
Hello, I would really like to try and make some music for globulation 2, but I don't really know how it works. I see that you use .ogg and on my Ubuntu machine you store the audio files in the "zik" folder (why not the "music" folder?). You have 5 audio files, two that are self-explanatory (intro.ogg and menu.ogg), but then there are three other files: a1.ogg a2.ogg and a3.ogg. I messed with it a little bit and I found that a3.ogg is the battle music and you have it switch after the previous audio file is done, which I think is really smart. My question is when does it switch from a1.ogg to a2.ogg and if someone was to add music to the game, how would that be implemented from the programmers point of view.



Thanks,
Lexen

Re: How Does the Music Work

Posted: Sat Mar 29, 2008 3:16 pm
by AppleBoy
http://www.globulation2.org/forums/view ... ?f=5&t=230 might be of some help, it explains it a bit more.