C++ 2D Shooter project (Htbaa's Worklog)
Sound with SDL_mixer
Part of the 4th milestone is implementing a sound system in my game (and of course engine). I had already decided to use SDL_mixer without checking out if there's something else I could use. All the SDL libraries are all pretty straight forward and thus easy to use.
SDL_mixer does even more then I expected. I was already thinking about a channel assignment system that handles all available channels and frees them when necessary so they can be reused. But none of that all is required :-).
I've only added basic sound playing support. It's stereo and the sounds panning depends on at what side of the screen the sound action takes place.
I'll be adding some callback support to it later so I'll be able able to halt looped sounds. Music support will be fairly easy as well. SDL_mixer does it with 1 call, 1 call to check if music is being played and 1 call to halt it. Can it be much easier?
Besides sound support I also finished the GUI. So all that's left is finishing the sound system, finding placeholder sound effects and music. And as a finishing touch: The boss fight. And that wraps up milestone 4 :-).
Milestone 4 won't be released as a demo. Milestone 4 will more or less be the raw game. After that I'll be building the online part of the game and foundations for future games. After enough testing and finishing up the online stuff it'll be time to polish the game, building levels, fine tuning graphics, sound and music and release it! Although it doesn't sound like a lot of work, it is :-D.
I more or less started the KrasEngine late October 2007 and in late December I actually started working on 2dsupershoot. So with a bit of luck I can finish the game within the year. I've got about 6 more months to go. Considering the game has 10 milestones and the 4th isn't even finished now being halfway doesn't look good for the schedule. But, a couple of the later milestones involve the online part (HTTP XML API) and with that I have experience enough so that won't be too much of a problem.
One thing I do worry a little about is the music. I don't like using those Music Makers and my guitar skills, well, I don't like to call them skills. So I wonder how I'm going to do that :-). But I'm sure everything is going to be alright.
Hopefully next week a new update.
SDL_mixer does even more then I expected. I was already thinking about a channel assignment system that handles all available channels and frees them when necessary so they can be reused. But none of that all is required :-).
I've only added basic sound playing support. It's stereo and the sounds panning depends on at what side of the screen the sound action takes place.
I'll be adding some callback support to it later so I'll be able able to halt looped sounds. Music support will be fairly easy as well. SDL_mixer does it with 1 call, 1 call to check if music is being played and 1 call to halt it. Can it be much easier?
Besides sound support I also finished the GUI. So all that's left is finishing the sound system, finding placeholder sound effects and music. And as a finishing touch: The boss fight. And that wraps up milestone 4 :-).
Milestone 4 won't be released as a demo. Milestone 4 will more or less be the raw game. After that I'll be building the online part of the game and foundations for future games. After enough testing and finishing up the online stuff it'll be time to polish the game, building levels, fine tuning graphics, sound and music and release it! Although it doesn't sound like a lot of work, it is :-D.
I more or less started the KrasEngine late October 2007 and in late December I actually started working on 2dsupershoot. So with a bit of luck I can finish the game within the year. I've got about 6 more months to go. Considering the game has 10 milestones and the 4th isn't even finished now being halfway doesn't look good for the schedule. But, a couple of the later milestones involve the online part (HTTP XML API) and with that I have experience enough so that won't be too much of a problem.
One thing I do worry a little about is the music. I don't like using those Music Makers and my guitar skills, well, I don't like to call them skills. So I wonder how I'm going to do that :-). But I'm sure everything is going to be alright.
Hopefully next week a new update.
(Posted on June, 8th 2008, 22:10)
Comments
Rincewind said:
Ah showing the sounds on a side of the screen is clever.
(Posted on November, 27th 2020, 13:25)