1 decade ago by stillen
Is there an equivalent to drawImage() for native canvas for impact? I thought that this would work, but it doesn't work as I would expect:
// Load an image
var img = new ig.Image( 'player.png' );
// Draw the whole image
img.draw( x, y );
I'm looking to add a video entity, but I can't seem to access drawImage() to work within the update of my entity and it look like ig.Image needs a direct path to an image, and won't let me place a video image.
// Load an image
var img = new ig.Image( 'player.png' );
// Draw the whole image
img.draw( x, y );
I'm looking to add a video entity, but I can't seem to access drawImage() to work within the update of my entity and it look like ig.Image needs a direct path to an image, and won't let me place a video image.