S
Snayff
Guest
Afternoon all,
I have my world info stored in a ds_grid as a bitmask and my entities are mapped on to another ds_grid. My intention is to track what tiles are currently visible by recalculating the field of view (FOV) whenever the player ends a turn in a different space to where they started.
My challenge is that I am not sure how to work out the FOV. If I were using objects I would look at line collisions or ray casting but as it is just info on a grid I am not sure where to start.
I've had a look around online and I think there are lots of resources describing how to check for line of sight or field of view, so once I know how to interact with/interpret the data from the grid I think I might be ok.
Any help would be appreciated.
Snayff
I have my world info stored in a ds_grid as a bitmask and my entities are mapped on to another ds_grid. My intention is to track what tiles are currently visible by recalculating the field of view (FOV) whenever the player ends a turn in a different space to where they started.
My challenge is that I am not sure how to work out the FOV. If I were using objects I would look at line collisions or ray casting but as it is just info on a grid I am not sure where to start.
I've had a look around online and I think there are lots of resources describing how to check for line of sight or field of view, so once I know how to interact with/interpret the data from the grid I think I might be ok.
Any help would be appreciated.
Snayff