:D I'm so happy! The progress on my game looks promising!!!! Just one question...
I need a quick & easy way to add animation & collision to my DragonBall Z game. (You can't have a DBZ game without collision or animation.)
Moving around is all good, but without animation, it doesn't feel right.
I was thinking that you could add collision with a SDL_Rect object slightly smaller than the sprite, but I'm not sure how to do this.
With animation, I was thinking about a SDL_Delay() with animation, but this would pause the program.
An animation consists of one or more "frames". In its simplest form, a frame is just a single still image that is just drawn normally, and a duration to indicate how long the frame lasts.
An animating object would have these frames, and would step through them as time progresses.
If you want to base your animations on "frames" (ie: one frame of animation lasts X display frames... so at 60 FPS, a frame that lasts 60 display frames would last 1 second long), you can just have an update() function which counts down the remaining frames until the next frame.