i wrote a tile engine and it is completely working.
i am making a turn based game so the players move 1 tile each move (not 1 pixel) and the current tiles are 32x32 pixels
what i am trying to do is make a slightly more realistic tile engine and add some strategy to it.
i want to make it so if there is an opaque tile in front of the player, such as a tree, they will not be able to see the tiles behind it.
such as:
G G G _ G G G
G G G _ G G G
G G G O G G G
G G G P G G G
G G G G G G G
G G G G G O G
G G G G G G _
G = basic grass tiles
P = player
O = opaque object that the player cannot see through
_ = area that isnt displayed
i have spent alot of time thinking about this and i cannot find a way to correctly calculate the tiles that should not be shown![]()



LinkBack URL
About LinkBacks




... and then DooM