I'm playing around with JS and found a small HTML5 game tutorial that I thought would be cool to modify. (This is the outcome: http://www.lostdecadegames.com/demos...e_canvas_game/
Everything is OK in the link given, but when I copied and played around with it just a little bit, I found it weird to leave traces when moving the character image.
Maybe it's about the background tiles I implemented?
It's really frustrating and I've no idea what is causing it...
Could anyone explain or guide me to some useful resources to find out more about it?
I included my modifications here: