Kapil Posted March 15, 2015 Share Posted March 15, 2015 I am developing a game and would like to connect it to database on a server in order to make a leaderboard . Its a memory excercise game and would contain some mini games. My aim is to let a user add other users to his friend list and receive notifications of his various activities of those friends like completing a level of one of the mini games, beating the high score of the user in one of the mini games. All in all I would like to how can I achieve php and mysql functionality in phaser. Link to comment Share on other sites More sharing options...
Huggz Posted March 16, 2015 Share Posted March 16, 2015 Essentially what you need to do is create some php pages/endpoints (maybe even look up php REST API) that serves & receives JSON data. These php endpoints will be your communication between your database and your game. In your game, you'll need to make some XMLHttpRequests to these endpoints submitting and requesting whatever data you need. http://stackoverflow.com/questions/22515159/phaser-js-php-leaderboardhttp://www.html5gamedevs.com/topic/3923-best-way-to-implement-a-high-score-list-from-a-database/ These aren't great examples, but maybe it'll give you some ideas what needs to be done. Link to comment Share on other sites More sharing options...
Recommended Posts