(Canvas/JS) Getting strange results with moving the view and fillRect, not sure what the problem is
Posted
by
AngerAlone
on Game Development
See other posts from Game Development
or by AngerAlone
Published on 2013-10-22T06:29:31Z
Indexed on
2013/10/22
10:16 UTC
Read the original article
Hit count: 172
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.
© Game Development or respective owner