Highest Rated Comments


TechnoM4tter3 karma

Hello! One of the main mechanics of the game is being able to see things in a cone directed where the cursor is. Technical question here: how did you manage to create the 'cone of vision' in darkwood and how did you make the transition of enemies from/into this cone? I've always been kinda intrigued by this especially once i realized all enemies are 2D sprites.

TechnoM4tter2 karma

I think i got it!

Correct me if i'm wrong, but what i can gather is that you shoot a set of raycasts with an amount depending on a certain desired angle, then you create a mesh at runtime with the raycasts hitpoints to simulate vision not going through walls, you draw the result into a RenderTexture and then you blur the edges a little bit, and *some* enemies can use this RenderTexture to become visible/invisible according to their shader.

That may be brute force but that's pretty ingenious, i have to say.