Camera Follow
The camera would follow the infected inhabitant when it is moving and when it is not moving the player is able to control the camera
Camera Pan
When the infected inhabitant is not moving, the player can control the camera by either hovering the mouse to the edge of the screen or by pressing the WASD keys
Selected Inhabitant
In the previous implementation, when the player press the inhabitant then it would be infected by the infected. But I decided to change this mechanic. The inhabitant is now clickable by the player without infecting it. When an inhabitant is selected, the camera would follow that inhabitant until the infected moves. In the future a UI would pop up when an inhabitant is selected. This would allow the player to select what they wanted to do with a particular inhabitant. Either infecting it or interacting with it but for now the camera is able to follow the inhabitant that it selected.
0 comments