daleharvey / pacman

HTML5 Pacman
Do What The F*ck You Want To Public License
697 stars 470 forks source link

score database #15

Closed Oleafeon closed 9 months ago

Oleafeon commented 7 years ago

How can i make it so that the score wil be uploaded to a database, So i can make a highscore page

mistajase79 commented 7 years ago

Database access can be done using PHP and MySQL (PDO recommended) I used javascript to create a form at the end of the game (to prevent anyone from changing values mid game) and posted the form to a php script which contained all the logic for DB insertion

Oleafeon commented 7 years ago

Alright thanks, i will look into it

mandric commented 7 years ago

Maybe use PouchDB to store your scores locally and then sync peer-to-peer or to a centralized location?