1 decade ago by Ash_Blue
I have several fairly complex menus I'm loading into my game (skill trees, journal, equipment, ect). In order to draw them with a low performance impact I'm rendering them dynamically with a separate Canvas DOM element. Then drawing them as images. Here is a walkthrough of what I mean.
1. Create <canvas> html element (but do not inject physically into the page)
2. Draw all necessary graphics on new <canvas>
3. Attach <canvas> as an image to Impact game and draw
Is this method for flatting graphics safe? Will it cause problems with Ejecta or other HTML5 exporting programs? Please let me know any ideas or pros / cons you can think of.
1. Create <canvas> html element (but do not inject physically into the page)
2. Draw all necessary graphics on new <canvas>
3. Attach <canvas> as an image to Impact game and draw
Is this method for flatting graphics safe? Will it cause problems with Ejecta or other HTML5 exporting programs? Please let me know any ideas or pros / cons you can think of.