Yeah, I've got most of the stuff I was talking about yesterday in place, except fixing that one minor bug in the Journal. Sound is in, thanks to Soundsnap and pdsounds, offering free sound samples to use, and OpenAL providing the library!
Anyway, about the sound system:
And, regarding Journal:
Here's the build: adv2_20080425_1.zip
Here's the required Sound Pack, which I'm not going to update as often since it's big: sound_20080425_1.zip
Here's the OpenAL Driver pack if you don't already have a game that installed it for you already: oalinst.ex
Anyway, about the sound system:
- I scrapped the part with the list of samples- now it just registers by filename in the various places it's called
- It keeps any buffer it creates, unless it is cleared (which it does upon entering a new area, and such). it basically acts as a caching system.
- It uses the first sound source (of which there is a limited number.. 20) it can find that's useful. If it can't find anything it fails
- BG is a special source, although it counts towards the 20. If you try to play a new background music it'll stop the old one first.
- I still need to add a timing feature for sound so that they can be properly timed (like special effects)
- monsters and items can have their own 'hit' sounds.
- Skills can have sounds, played at any part as part of the command list
- Area scripting also allows the music to change and for sounds to play (and looping sound samples is also supported here, as well as stopping all sound)
- I don't have the code to play sounds in the subscreen done yet (such as when using healing items)
- the title screen music, miss sound effect, and victory theme are all coded in defines for now, since they're system-wide and not dependant on anything in the content.
And, regarding Journal:
- It loads a big string, splits it by line, figures out wrapping and allows scrolling using the keyboard (although that's not all properly done yet)
- There's a file to define which ones are available, and it uses it's position in the file to determine the order
- The code to 'award' things such as when talking to someone or getting journal pages is not yet in place
Here's the build: adv2_20080425_1.zip
Here's the required Sound Pack, which I'm not going to update as often since it's big: sound_20080425_1.zip
Here's the OpenAL Driver pack if you don't already have a game that installed it for you already: oalinst.ex


Comments
,