How the preview will work

00:00:00:03 - 00:00:30:18

Peter

In this section, we are going to focus on adding selection preview to finish our field interaction logic. This way our player will finally have some visual feedback about which tile on our field is selected and which style we are going to affect using the tool that we are holding. Code wise, we are going to add a new class called Field Selection Preview that will be using our field detector to get to the positions of the tiles that are selected.


00:00:30:29 - 00:00:59:02

Peter

But since our field detector doesn't store the selected fields, we're going to have to modify this as well as our tools. So that holds or and also the handle, because we are going to now trigger the detection, which will happen automatically in our fields. The detector, their field detector will start to detect that field positions and the tools, as well as our field selection preview, will both use this data for their own purposes.


00:00:59:12 - 00:01:01:02

Peter

Okay, let's get going.



Complete and Continue