4 ms·
Hey thanks for he feedback everyone. Design decisions: Dont rotate images - this really kills performance. Try not to scale images - My rough performance test
by andy_boot 16y ago
Hey thanks for he feedback everyone.
Design decisions:
Dont rotate images - this really kills performance.
Try not to scale images - My rough performance tests said: draw 1 scaled image = draw 3 images.
As you guessed, Bullet images sprites were not done for performance reasons. I might try and add them again and see what it looks like.
I'll experiment with bigger enemies / explosion images / collision box changes.
I'll write up an article in the future covering my decisions in more detail. And yes I hate it when HTML5 games kill my CPU I was going to make sure this one didn't do that.
andy