Sprite and SpriteList Classes (Update)

After almost a week of fiddling with a set of generic sprite classes, I decided to roll all the functionality I need into one class that can represent a static or animated sprite, allows for transformations (rotation, scaling, flipping, etc.), allows for multiple animations per sprite and has 3 distinct collision detection methods (radius, bounding box, and pixel) available. The only thing left to enhance are the collision routines so that they can account for any transformation effects. My greatest victory so far has been the ability to do pixel perfect collision with the animation frames (off a master sprite sheet). All in all, these classes are ready to be included into our platformer. More on this later!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: