Skip to content

Instantly share code, notes, and snippets.

@dejaime
Created November 6, 2013 04:24
Show Gist options
  • Save dejaime/7330855 to your computer and use it in GitHub Desktop.
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.
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