151
Quote from: "eleinvisible"
To above: You could just have made all of your sprites animated with just one frame for non-animated sprites then you could still call the update function on all of them. I would suppose it would have a small overhead (considering you have an integer to keep track of current frame position).
I could have, but it would be a bad idea. Treating static sprites as 1-frame animated sprites would add tons of needless overhead, especially in memory. There are several variables needed to track the state of the animated sprite including frame number, descriptors of the layout of the sprite sheet, etc.
I'm pretty happy with my implementation. It would have been nice to avoid modding SFML, but all the dancing around would have been a much bigger deal then just changing a couple of things in the library. This is why using open source libraries is nice. Might as well take advantage of it when it's useful.