Jump to content

Php Game Map Help


cooldude832

Recommended Posts

I'm working on developing a game that is driving all by php/mysql.  One feature I want to have is a static map (a 50x50 grid).  the player will have a location x,y on the map and that is the picture of their player on the map.  My question is this.  If I have the character images all made up already and the map is tilled up can I use the GDlibary in php to slap the image of the player ontop of the grid square they are on?  If so how?  Also would that be easier than (and for loads) manually making an image with the player on that square doubling my images I need to make?  Thirdly if this is easy do you think it be smart to let the whole GD library generate the map?  Using logic making different terrans and assigning movement values to them etc etc.  I'm open to all ideas to code it fast and effecient.  The one thing that can't change is how players move.  A compass will have arrows they click on to move that way (including ones like northeast southwest south,east,north etc)  And then it adjust the local cordinates accordingly. 

Link to comment
https://forums.phpfreaks.com/topic/59768-php-game-map-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.