Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Red

I am in the planing stages for my first Impact game and am trying to figure out the best way to do a minimap in the HUD section of my game. I would like us an HTML image for the static parts of the HUD as I am assuming this would lower the number of pixels that have to be redrawn and thus increase performance.

So my question is would it be a good idea to try and make the minimap a second canvas altogether? Would this even be possible with Impact?

1 decade ago by Graphikos

It would be possible.. but you aren't really talking about Impact anymore... you are just talking HTML/5. Stacking HTML elements (even an canvas) is possible, controlling that canvas from Impact is also possible (it's all javascript).

I do a HUD/minimap in the same impact canvas with negligible loss in performance. Unless you are really hard-up for it, might not be worth the effort to do two canvases. There is performance to be had if you do though.
Page 1 of 1
« first « previous next › last »