Tile based map with php sockets -


this first post here, so.. gentle :d

so guys, working on small browser game, , started tile based map. quite big map, 1000*1000 tiles, @ least.

i tried few methods of taking map database. example, load 12*12 tiles, cover screen, , when user dragged map, loading more rows/columns database through ajax , deleting opossing ones. slow method on localhost.. can't imagine how on real server.

i read more techniques using pseudorandom number generator, random seeds etc don't think fit type of situation complicate things.


so thinking of using php socket. using php socket in other projects , pretty reliable , fast.

i take map database , put in big 3 dimensional array on single machine, server. , through sockets users take maps, new rows/columns etc.

have used sockets task? or there better? kinda frustrated results gained ajax , looking fast solution.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -