(Canvas/JS) Getting strange results with moving the view and fillRect, not sure what the problem is
- by AngerAlone
I'm really new to JS and have been banging my head against this problem all day.
Here's a jsfiddle: http://jsfiddle.net/4ShH4/1/
AND
fullscreen: http://jsfiddle.net/4ShH4/1/embedded/result/
I'm getting this weird tearing/elongation of the drawn elements when I move the screen with WASD. I have no idea whats causing the problem. I've put comments on the fiddle to explain my code.
Any help would be greatly appreciated.