i'm making a side-scrolling shooter game (kinda like a side-scrolling version of "raptor: call of the shadows"). the setting is in space, and as a result i need stars. the stars are single-pixel sprites, and I would estimate that there are about 30 of them on screen at one time.
then there are some random enemy ships that come and shoot at you.
my problem is this: the program gradually, but substantially, slows down. i'm assuming it's something to do with the number of sprites. one of my friends suggested that i delete any off-screen sprites that i'm not going to use anymore. i tried that but it didn't help.
i do have a counter that keeps track of how many sprites have been created. however, it doesn't have to increase to much more than, say, 250, for it to start slowing down.
in addition i have some 54 images to be used for sprites. these are all loaded at once. somehow, though, i dont think the number of images is causing it to slow more and more as time progresses.
thanks for investigating my problem!
Old school is awesome - music, games, etc...