Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Sneak Game

    Work In Progress
    3
    5
    253
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • vinicity
      vinicity F last edited by vinicity

      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!

      1 Reply Last reply Reply Quote 6
      • PickleCatStars
        PickleCatStars F last edited by

        Looks great. What was the ’another way’?

        1 Reply Last reply Reply Quote 0
        • vinicity
          vinicity F last edited by vinicity

          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.

          1 Reply Last reply Reply Quote 1
          • PickleCatStars
            PickleCatStars F last edited by

            Fair enough. Easy peasy :)

            It probably wouldn’t be too difficult to roll your own createpoly() using similar principles, I guess...

            1 Reply Last reply Reply Quote 2
            • AndyG1985
              AndyG1985 last edited by

              That looks really smart!

              1 Reply Last reply Reply Quote 1
              • First post
                Last post