cooldude832 Posted July 13, 2007 Share Posted July 13, 2007 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. Quote Link to comment Share on other sites More sharing options...
Barand Posted July 13, 2007 Share Posted July 13, 2007 create gd image of map create gd image of character use imagecopy() to place character in map image output combined image Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.