HTML5 Snake Game with source code walkthrough
jdstraughan.com
jdstraughan.com
I recently started porting my native iOS game to HTML5. After Xcode/Objective-C, HTML5 development is just so refreshing for the 1) instant reload, 2) succinctness of Javascript. I'm kicking myself for not starting sooner.
Here's a link to my HTML5 game: http://noisytyping.com/NCT6745/index.html (work in progress!)
edit: I just realized I haven't put in a tutorial yet. It's an Arukone implementation: connect all number-pairs, and fill the grid.
It took me a tries to figure out how to play, but once I got it I liked it. Very nice gameplay, very clean, addictive.
I'd add a few basic instructions on page to get folks started, even something simple like "Use your mouse to draw a line between 2 numbers".
Ah, just saw your edit - perfect!
I'm definitely sold on HTML5. For the kind of games I want to make, there's no reason not to bypass native and put them on as many platforms as possible. A month ago I wouldn't have considered anything but native.
It probably works straight away in Chrome because requestAnimationFrame is defined.
Please let me know if this is still not working in your browser.
I am honing my HTML5 skills, and this was very useful. I started playing with your code...
This is only my 2nd HTML5 game - and it was a blast to create. Best of luck to you, and don't hesitate to contact me when you get some code together. I'd like to help any way I can.
The page would move even from these links if your page was long enough to have a scroll.
(You can see it by shrinking the window all the way down until it gets a scroll)