Skip to content

Instantly share code, notes, and snippets.

@dejaime
Last active December 26, 2015 06:59
Show Gist options
  • Save dejaime/7111627 to your computer and use it in GitHub Desktop.
Save dejaime/7111627 to your computer and use it in GitHub Desktop.
Base Sprite Class snippet
class sprite {
private:
//All unshared data should come here, speed, rotation, etc.
sysSprite renderer*; //This is where the shared data is stored.
public:
sprite () {
//Initialize the sprite and set up the 'renderer' pointer.
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment