Day 44 – Field Of View

I have lots to do this week so there’s less time to work on my prototype. Unfortunately that means there’s not that much to show, but I have made the first step in adding a field of view.

As you can see in the screenshot it’s a cone shaped area and if a character enters any tile inside it, he will be detected. Currently I configured it so that I visualize the FOV when you hover over the character, but I’ll add indicators to the movement path as well, so you can see if your character would be detected.

All I have right now is generating the FOV area and visualizing it using a custom mesh. Now I’m starting on actual line of sight logic, keeping track of who can see whom.

Gamedev Diary Knock-On Effect

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: