how to quickly find 10x10 map location 54?
Posted: Sun Jun 16, 2019 10:19 pm
I decided to give a try for having one dimensional map data instead of my usual 2 dimensional.
2 dimensional would be: mapdata[x][y], but now mapdata is just mapdata = {1, 2, 3, 4, 5...}
Suppose I have 10x10 map and i now know that location 54 is the one in question that i need to find.
of course i know it is x = 4 and y = 5, but how do i make hollywood figure it out the quickest?
do i just divide by 10 and see the whole number, or is there some quicker way?
2 dimensional would be: mapdata[x][y], but now mapdata is just mapdata = {1, 2, 3, 4, 5...}
Suppose I have 10x10 map and i now know that location 54 is the one in question that i need to find.
of course i know it is x = 4 and y = 5, but how do i make hollywood figure it out the quickest?
do i just divide by 10 and see the whole number, or is there some quicker way?