Need a SpriteElement that implements a basic sprite Element2D


Possibly a StaticSpriteElement and an AnimatedSpriteElement.


robzhu wrote Feb 9, 2011 at 9:10 AM

Are you sure we need these as elements and not just add a collection of IRenderable2DBase to the Layer?

twohalf wrote Feb 9, 2011 at 9:42 AM

Possibly. But instead, having a SpriteElement would allow adding behaviors to the sprite and remove the need for custom implementations of Element2D/ComplexElement2D unless it's really necessary for a special-case. It seems like the better solution that solves a more generalized scenario.
It could also be that the best route is having both for perf reasons and not requiring all sprites to have the overhead of Element2D.

wrote Feb 14, 2013 at 1:50 AM