Posted 05 August 2016 - 11:36 PM
I am working on a little game so I am not overly concerned about efficiency, but whatever.
The game is "tile" based and each move does an analysis on the surrounding tiles
To get tiles I am currently doing
The game is "tile" based and each move does an analysis on the surrounding tiles
To get tiles I am currently doing
function getTile(x,y)
return data[(y-1)*width+x-1]
end
I realize it is much easier to get tiles if each y-coord had their own table within data, but is it really more efficient in terms of computation. Thank youEdited on 05 August 2016 - 09:41 PM