My LOS doesn't seem to be working...
Anything to the right and bottom of a solid block will not show up.
As you can see, red blocks are walls, the blue is the player, and anything gray scale are shadow blocks.
My code:
Well, quick fix to my own problem I guess...
I just made the blocks smaller by 1 pixel, and offset the grid by 16.
NVM, The walls can stay the same size.
This may be caused by wrong collision polygons or misplaced origin image points. If this doesn't help, please post your project file.
Develop games in your browser. Powerful, performant & highly capable.
It was definitely a problem with the origin. I kept messing with things until it worked.
I also tried redoing the bounding box, and it really helped with random collisions I didn't want.
Thanks for the reply, it really helped!