On Fri, May 20, 2011 at 2:45 AM, Gaurish Sharma <[email protected]> wrote:

> Hi,
> Canvas is indeed exciting & your small game idea is really nice. For
> next version, try improving the code a little. Few suggestions, I can
> tell after taking small glace at code:
>
> 1) Stop Polluting Global: I see lots of variables declared as globals
> for apparent reason. And try to decalre variables before you use them
> 2) In JavaScript, Always use triple equals "===" instead of "=="
> double equals.
>

It is not the case always. indeed this is really a advance topic. See dmitry
baranovskiy blog on this topic
http://dmitry.baranovskiy.com/post/typeof-and-friends


> 3) Add a option to restart the game, rather than asking people to
> reload the page. its a bad user experience
>
> Great stuff
>
> Regards,
> Gaurish Sharma
>
> --
> LUG@IITD - http://lug-iitd.org/Footer
>



-- 
┌─────────────────────────┐
│    Narendra Sisodiya
│    http://narendrasisodiya.com
└─────────────────────────┘

-- 
LUG@IITD - http://lug-iitd.org/Footer

Reply via email to