Jump to content

Php + mysql server side database management for phaser game


Kapil
 Share

Recommended Posts

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

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-leaderboard

http://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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...