Basic vision detection

First, we start by creating and adding a scene into our game, and then we add the player.

We assign all the necessary codes into the player so it is possible for us to move and test the game. For this example, we have quickly assigned some basic movement information into our player, because that is the only interaction that will occur between the player and the AI character.

So now, we have our character moving freely on the scene and we are ready to start working on the enemy character. We want to replicate that specific ...

Get Practical Game AI Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.