Quote:
Originally Posted by Crow
Note: This function name is terrible. I'm not good at this.
WallIntersect(x1, y1, x2, y2)
What is this? Simple! I believe it was Dusty who was requesting this before: a function to check for walls on a line. This is a GS2 implemenation, obviously, ...a hitbox that is 32x32 pixels. This is why I add 17 / 16 to the base of my onwall() checks. You can simply modify that if you need.
|
Pretty nifty contribution, I can see this being good for a lot of novices who don't have half a clue about maths. Good job