1 decade ago by wwallaceb
Hi all,
I'm rather new to impact.js, but recently I failed on setting the background-image using css property of the canvas elements in order to add some more complex (not tile-based) background to the game. I went through many threads in this forum when many solutions involving adding new layers in weltmeister or creating new entity for the background are discussed. But the thing is that whatever image I would add via impact.js functionality it would cause the canvas element to draw it on every update (or not?) and what I would like to do is to use browser's built-in rendering engine in order to render the background only once and then use canvas only for drawing moving parts leaving the whole rest of the space transparent. Please let me know whether it's possible in impact.js?
I'm rather new to impact.js, but recently I failed on setting the background-image using css property of the canvas elements in order to add some more complex (not tile-based) background to the game. I went through many threads in this forum when many solutions involving adding new layers in weltmeister or creating new entity for the background are discussed. But the thing is that whatever image I would add via impact.js functionality it would cause the canvas element to draw it on every update (or not?) and what I would like to do is to use browser's built-in rendering engine in order to render the background only once and then use canvas only for drawing moving parts leaving the whole rest of the space transparent. Please let me know whether it's possible in impact.js?