blenderNetworkpatreonblender-logosdheartuserthtimesbookphotopencilmap-markerchevron-rightbancommentcommentstwitterfacebookrsschainnavicongoogle-plusenvelopelinkedinmail-replycalendar-otumblrredditstumbleuponshare-altbloggerflattrflag

Failed Attempt at Snake in HTML 5

Failed Attempt at Snake in HTML 5

Postby alienhunter » August 7th, 2010, 9:21 pm

The soure code can be found here:
http://www.copypastecode.com/33720/

You'll need to upgrade to FF 4 or the latest version of Chrome or Opera.

350 lines of code for nothing...

WIill try a platformer soon.
alienhunter
Starting Out
Starting Out
 
Posts: 10
Joined: July 25th, 2010, 10:12 am

Re: Failed Attempt at Snake in HTML 5

Postby IrascibleOne » August 7th, 2010, 11:29 pm

That's pretty neat, besides the fact that it doesn't work completely. I have yet to start fiddling with HTML5. Really wanna get into it soon.
Image
User avatar
IrascibleOne
Site Admin
Site Admin
 
Posts: 1539
Joined: July 31st, 2008, 7:14 pm

Re: Failed Attempt at Snake in HTML 5

Postby SPARTAN-001 » August 8th, 2010, 7:42 am

Hmm... I might have to get into HTML 5. It looks pretty interesting. The snake game doesn't work, but do you know where you went wrong at least? I find that examining why something went wrong usually helps improve my coding.
//SPARTAN
Image
Practice makes perfect and nothing is perfect, so why practice? -brektzar
User avatar
SPARTAN-001
Legend
Legend
 
Posts: 1106
Joined: November 5th, 2008, 4:23 pm

Re: Failed Attempt at Snake in HTML 5

Postby alienhunter » August 8th, 2010, 4:56 pm

If only I could figure out the bug...

I'm guessing I should have tried a simpler approach. I'm currently working on a canvas "game engine" that should make my life easier. Let's see how it unfolds.
alienhunter
Starting Out
Starting Out
 
Posts: 10
Joined: July 25th, 2010, 10:12 am

Re: Failed Attempt at Snake in HTML 5

Postby SPARTAN-001 » August 8th, 2010, 7:55 pm

Sounds interesting. Good luck! :thumbup:
//SPARTAN
Image
Practice makes perfect and nothing is perfect, so why practice? -brektzar
User avatar
SPARTAN-001
Legend
Legend
 
Posts: 1106
Joined: November 5th, 2008, 4:23 pm
Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest