Jhangir Gillani Posted April 30, 2015 Share Posted April 30, 2015 my game is very simple all i need to know can i record the score of my game in database ! i want to record score of my game when a user plays it . when the game ends the user should save its name and score he scored should be recorded in the database with his name . if yes then please attach me to the code ! Link to comment Share on other sites More sharing options...
grumpygamer Posted May 1, 2015 Share Posted May 1, 2015 You'll have to do that via ajax:http://www.tutorialspoint.com/ajax/ajax_database.htm Link to comment Share on other sites More sharing options...
deniz Posted May 1, 2015 Share Posted May 1, 2015 You need to have your own server or use some sort of a cloud service to store highscore and username data. But I warn you, this may not be a simple process. Alternatively if you host your game on gamejolt you can use their excellent high score / trophy api. Please check the link below.http://gamejolt.com/games/other/game-jolt-api-js-library/22948/ Also kongregate have a similar and more extensive api:http://www.kongregate.com/ Link to comment Share on other sites More sharing options...
Recommended Posts