Hi and some questions

Hi, I’m a newbie at SDL who is trying to make a game from it. Recently
I’ve made a class which handled animation based on Marius Andra’s
tutorial. The main application class have a screen surface, a vector of
backgrounds, and a vector of sprites. The sprites themself have a vector
of animations (so, for example, 1 character object can have a walking
animation, an attack animation, and a death animation ). And of course an
animation consists of a vetor of images. Actually there’s nothing wrong
with my application. The sprites can animate and moved at will. But I
wanted to add a system of predefined animations (like an opening movie
etc.). Sadly, I don’t have a clue of what to do. I don’t know what
variables or methods that need to be made. Can anybody help me with this?

My second question is: are there any tutorials about SDL Audio? I can only
find one (two with Marius Andra’s but it uses SDL_mixer).

Thanks in advance,

Bawenang R. P. P.

Hi,

benang at cs.its.ac.id schrieb:

My second question is: are there any tutorials about SDL Audio? I can only
find one (two with Marius Andra’s but it uses SDL_mixer).

What’s wrong with SDL_mixer? IMHO, it makes SDL’s audio capabilities
much more easily accessible.

As for your other question, that is a very vague question and depends
very much on how you design your application. As in many places in game
programming, there is not one way to do that, but many. My suggestion
would be that you experiment a bit, that way you will learn the most.

Sebastian>

Thanks in advance,

Bawenang R. P. P.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl