Jump to content

HTML 5 snake game


beanymanuk

Recommended Posts

Hi

 

I am trying to build this HTML 5 snake game buts the scoring part of the game does not work in firefox anyone know why not?

http://blog.new-bamboo.co.uk/2009/12/30/html5-canvas-snake-game

 

Think its around this part of the code

function updateScore(){
  var score = (snakeLength - 3)*10
  document.getElementById('score').innerText = score;
}

 

Anyone got any ideas?

 

game here try in Firefox and score does not increase but in Chrome it does

http://snake.heroku.com/

 

Thankyou in advance

 

Link to comment
https://forums.phpfreaks.com/topic/200737-html-5-snake-game/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.