phaser/v3/src/gameobjects/sprite/SpriteCanvasRenderer.js

10 lines
230 B
JavaScript

var SpriteCanvasRenderer = function (renderer, src, interpolationPercentage, camera)
{
if (this.renderMask === this.renderFlags)
{
renderer.drawImage(src, camera);
}
};
module.exports = SpriteCanvasRenderer;