1) Stop Polluting Global: I see lots of variables declared as globals for apparent reason. And try to decalre variables before you use them 3) Add a option to restart the game, rather than asking people to reload the page. its a bad user experience
Actually this thing was always in my mind, but I thought that it would make understanding the code difficult. I wanted that the person reading the code, should understand the code at one go. What is your idea about this? because actually my aim in this was to show the capabilities of HTML5 Canvas, and further the imagination of Web Developer out there. 2) In JavaScript, Always use triple equals "===" instead of "==" double equals. I didn't know about this earlier, very much thanks. Thanks for your appreciation. Thanks Akshat Goel http://webdevhub.net Subscribe to it : Facebook <http://facebook.com/webdevhub> | Twitter<http://twitter.com/webdevhub>| RSS <http://feeds.feedburner.com/Webdevhub> -- LUG@IITD - http://lug-iitd.org/Footer
