Skip to content

Instantly share code, notes, and snippets.

@alivesay
Created November 19, 2017 00:45
Show Gist options
  • Save alivesay/6c47a58b9cb77c2644365b7c9c950816 to your computer and use it in GitHub Desktop.
Save alivesay/6c47a58b9cb77c2644365b7c9c950816 to your computer and use it in GitHub Desktop.
// ARTIFACTS DRAWN ON THIS ONE
void render() {
if (this->_isAutoPlay && this->_frameTimer->tick()) {
this->_currentFrame++;
if (this->_currentFrame >= this->_frameCount) this->_currentFrame = 0;
}
Sprites::drawPlusMask(this->getX(), this->getY(), this->_bitmap, this->_currentFrame);
}
// NO ARTIFACTS
void render() {
if (this->_isAutoPlay && this->_frameTimer->tick()) {
this->_currentFrame++;
if (this->_currentFrame >= this->_frameCount) this->_currentFrame = 0;
}
Sprites::drawPlusMask(this->getX(), this->getY(), this->_bitmap, this->_currentFrame);
this->getX();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment