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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.