hiscores.js - addyh/tetris GitHub Wiki
High Score Functions
-
submitHiscore()
- Call addBestScore if they have entered a name
-
addBestScore(name, score)
- Send name and score to high score server
- Reload the page, to start game over
-
Bool isBestScore()
- Did they get the all-time high score?
Cookie Functions
- setCookie(cname, cvalue, exdays) -- Set a cookie
- getCookie(cname) -- Retrieve a cookie