Re: [JSMentors] Feedback/code review for my canvas game

2011-06-23 Thread Nick Morgan
My post on Canvas has gone live now on CSS-Tricks: http://css-tricks.com/9876-learn-canvas-snake-game/ Chuffed! Thanks for your help. -- Nick Morgan http://skilldrick.co.uk @skilldrick -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/jsmento

Re: [JSMentors] Feedback/code review for my canvas game

2011-06-13 Thread Nick Morgan
On 12 June 2011 21:28, Peter van der Zee wrote: > On Sat, Jun 11, 2011 at 8:01 PM, Nick Morgan wrote: >> I'd really appreciate any feedback/constructive criticism you guys have. > > Why did you go for the revealing/factory/"functions created in > constructor" pattern rather than using prototype?

Re: [JSMentors] Feedback/code review for my canvas game

2011-06-13 Thread Nick Morgan
On 12 June 2011 17:12, Balázs Galambosi wrote: > On Sat, Jun 11, 2011 at 8:01 PM, Nick Morgan wrote: >> Hi all >> >> I've written a basic Snake game in JavaScript. It's available on jsFiddle >> here: >> http://jsfiddle.net/skilldrick/bg7UF/ (it's over 300 lines so thought >> a bit long for copy-

Re: [JSMentors] Feedback/code review for my canvas game

2011-06-12 Thread Peter van der Zee
On Sat, Jun 11, 2011 at 8:01 PM, Nick Morgan wrote: > I'd really appreciate any feedback/constructive criticism you guys have. Why did you go for the revealing/factory/"functions created in constructor" pattern rather than using prototype? - peter -- To view archived discussions from the origi

Re: [JSMentors] Feedback/code review for my canvas game

2011-06-12 Thread Balázs Galambosi
On Sat, Jun 11, 2011 at 8:01 PM, Nick Morgan wrote: > Hi all > > I've written a basic Snake game in JavaScript. It's available on jsFiddle > here: > http://jsfiddle.net/skilldrick/bg7UF/ (it's over 300 lines so thought > a bit long for copy-pasting) > (Also on Github if anyone's interested: https

[JSMentors] Feedback/code review for my canvas game

2011-06-11 Thread Nick Morgan
Hi all I've written a basic Snake game in JavaScript. It's available on jsFiddle here: http://jsfiddle.net/skilldrick/bg7UF/ (it's over 300 lines so thought a bit long for copy-pasting) (Also on Github if anyone's interested: https://github.com/skilldrick/jsSnake) I'm going to be using this for a