Created
November 6, 2013 04:24
-
-
Save dejaime/7330855 to your computer and use it in GitHub Desktop.
Drawing function for the sprite class of the open source game Spacerock Miners, as an example for the website BuildAndGun.com.
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
void draw(const int position_x, const int position_y, const unsigned int anim_current, | |
const unsigned int frame_current, const int rotation, const short int anim_dir, const float scale, | |
const bool flip_horizontal, const bool flip_vertical, const float taint_r, const float taint_g, | |
const float taint_b, const float taint_a, const unsigned int time_step); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment