Jump to content

Saving tilemap data to database


TheRegge
 Share

Recommended Posts

I am making a relatively simple game using Phaser.Tilemap... I need to save the tilemap data to a sql database. Any idea how to go about that? I am aware of localstorage, but I need a permanent data save that can be share across sessions and users... Also, when I try to use:

myTileMapName.dump();

also,I get hundreds of '.' characters printed to the console... nothing else... I am confused. 

Any help very appreciated.

Link to comment
Share on other sites

I've had some experience using mySQL and can safely say it is not my favourite environment to code in. I do however know this is possible.

 

CSV Storage - http://www.mysqltutorial.org/import-csv-file-mysql-table/

 

JSON Storage - http://stackoverflow.com/questions/12165456/import-json-file-into-mysql-database-with-php

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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