Stephen Feuerstein Stephen Feuerstein

Fading out the walls between you and the camera

In a top-down game, walls and pillars constantly get between the camera and the player, blocking the view of the player’s character. Here's how I used raycasting and smooth opacity fading to fix it.

Read More
Stephen Feuerstein Stephen Feuerstein

How I made enemies attack while chasing you

Behavior trees pick one thing to do per tick. Chase, patrol, flee. So how do you let enemies attack at the same time? I borrowed a concept from game engines that solved it with surprisingly little code.

Read More