Sneak Game
-
Remember when @toxibunny posted a link to an article on how to do line-of-sight shadows?
I gave it a go to implement the code in Fuze, and I think I have an idea on how to turn it into a sort of stealth/puzzle game.
At first I had some problems because of a bug in createPoly(), but I managed to do it another way!
-
Looks great. What was the ’another way’?
-
In the example in the link, he used all the coordinates from the calculations and drew one big polygon. I figured I could do the same in Fuze, but alas, I could not. So the other way was sorting the coordinates by angle from the character, and then drawing triangles from the character to two coordinates at the time from the sorted list.
-
Fair enough. Easy peasy :)
It probably wouldn’t be too difficult to roll your own createpoly() using similar principles, I guess...
-
That looks really smart!