Cactus Enemies

John Liou
IMM at TCNJ Senior Showcase 2018
1 min readApr 4, 2018

A large focus of my game was the environment and the characters in the game. In the beginning, I did a lot of work modeling and animating the character, this week, I programmed him to seek out players in his sight range, chase them if it could see it, and attack if it is close enough to do so.

Everything in the red circle is targetable by the cactus, which then turns and moves to follow it. Within a certain range (subtracting the position of the cactus from the player), the cactus will attack in the direction of the player, which the player can choose to dodge or attack the cactus.

--

--