I am making a 2D game in javascript/ajax, that will be using data stored in mysql database. Every user have got his own “area” made of small squares that can have some values. But I have no idea, how to store values of each square in mysql, when each user can have area with different width or height. Do you have some idea?
Share
How about storing the rectangle’s four corners (x0, y0, x1, y1)? If you have an index on them, querying should be fairly efficient too, but your mileage may vary…