Sprites don't run!

Hi to all, I have a big problem. I’m developing a small SDL demo: a
background with 4 sprites moving and rotating above it. The problem is the
speed; my sprites move very slowly. I use 640x480x16 video mode and a clycle
like:

cycle {

write sprite 1
write spirte 2
write sprite 3
rotate sprite 4
write sprite 4

HandleEvent();

pos_sprite1++
pos_sprite2++
pos_sprite3++
pos_sprite4++

}

That’s all I can undestand where is the problem. Does anibody know where I
can download a demo (or a gamer) with source that use a lot of fast moving
sprites?
Thank a lot.
Bye, Andrea

My game BugSquish is fairly simple, and has numerous sprites on the
screen at once. (MOST of my games have lots of sprites on the screen
at once :wink: … but BugSquish was the simplest game to create)

http://www.newbreedsoftware.com/bugsquish/

-bill!On Tue, Jan 08, 2002 at 10:05:34AM +0100, Andrea Massioli wrote:

That’s all I can undestand where is the problem. Does anibody know where I
can download a demo (or a gamer) with source that use a lot of fast moving
sprites?

You may want to look at test/testsprite.c in all SDL source package.
maybe you also want to look at the redraw and update part again
if your program runs too slow.

Regards,
.paul.On Tue, Jan 08, 2002 at 10:05:34AM +0100, Andrea Massioli wrote:

Hi to all, I have a big problem. I’m developing a small SDL demo: a
background with 4 sprites moving and rotating above it. The problem is the
speed; my sprites move very slowly. I use 640x480x16 video mode and a clycle
like:

cycle {

write sprite 1
write spirte 2
write sprite 3
rotate sprite 4
write sprite 4

HandleEvent();

pos_sprite1++
pos_sprite2++
pos_sprite3++
pos_sprite4++

}

That’s all I can undestand where is the problem. Does anibody know where I
can download a demo (or a gamer) with source that use a lot of fast moving
sprites?
Thank a lot.
Bye, Andrea


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