mansim Posted July 10, 2017 Share Posted July 10, 2017 I have an army game made with HTML5 canvas. I am using spritesheets (.png images) for sprites. And for every movement of every unit i redraw every unit like here: Quote ctx.drawImage( spritesheet, sprite_x, sprite_y, 44, 44, map_x, map_y, 44, 44 ); But i heard something about HTML5 canvas sprites copy for better performance.. But i can't google it out, or any examples of it. I heard that Pixi.js is using it, but i am not considering using Pixi.js. Do you know any examples or possibilities of cloning the same sprites for performance improvement? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.