simple php/mysql game. is there a better way i can do this?

Associate
Joined
11 Oct 2008
Posts
268
I'm making a very simple game, not for any specific purpose, just to see if i can learn a little while doing it.

At the moment, I have a little character, and im using absolute positioning to display my character on my game map, the position for the image is called from my database as a simple echo, and updated with a little compass i made, effectively making the character jump across the map.

I'm guessing absolute positioning has a few flaws when applied like this, especially with different resolutions. So is there a better way to display the position of my character, which will be compatible with all browsers.

Sorry if this was hard to follow :)
 
Whatever you decide to use you'll have to convert world coordinates to screen coordinates - this is a common task in game programming a quick google should explain the details, it's fairly simple.
 
Back
Top Bottom