Last active
December 26, 2015 06:59
-
-
Save dejaime/7111627 to your computer and use it in GitHub Desktop.
Base Sprite Class snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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