I am making a game using html canvas.
Here is my progress:
http://db.tt/ei3LlR (use WASD and left / right keys) Helps ZOOM.
My questions:
- Why does the shadow flicker in Google Chrome when the tank spins?
- Why does the tower image flicker safari when turning the tower?
- Why does it work fine in Firefox?
The image of the tank and the image of the tower are simple old png. Shadows are dynamically created using these images. Shadows are not objects of the image, but elements of the canvas.
Flickering only seems to happen when I change the rotation of the image. When I say flicker, I mean that the image seems to contract and grow very quickly. The blinking stops again when the image stops rotating.
What's going on here? Is this a problem at my end?
source
share