Checking surrounding coordinates in a grid and changing the current coordinate properties accordingly
I'm making a grid-based game where you have land and water and the land tiles should change their image depending on how tiles around it are also land tiles. What would be the most efficient way to go about this?
for example, if it looked liked this on the grid( the O being the current position)

L L L

L O L

W W W

the tile would be a southern coastline image


Checking surrounding coordinates in a grid and changing the current coordinate properties accordingly
===

I'm making a grid-based game where you have land and water and the land tiles should change their image depending on how tiles around it are also land tiles. What would be the most efficient way to go about this?
for example, if it looked liked this on the grid( the O being the current position)

L L L

L O L

W W W

the tile would be a southern coastline image

