Weekly DevLog 2


This week we added player functionality,  basic NPC functionality, a main menu and more props and models to the project.
The game is now in a playable state and the team has been testing features and iterating upon our current design.

Additions:

  • First person player player controller
  • More furniture
  • Simple AI that allows npcs to pursue the player, and stop pursuit when player is out of sight
  • Added more props to the apartment level
  • Scripts to allow player interaction with objects
  • Uploaded a working test build to itch (this build is missing some of this weeks features however)

Changes:

  • Fixed lighting bugs
  • Fixed build errors

Here is a brief clip of our player walking around our first level:

...

In this clip the Enemy AI (Red capsule) will move towards the player when it intersects the blue circle. This is the "sight distance" of the AI
however if the player intersects the smaller green circle, the AI will continue to look at the player, but not move closer. If the player is fully inside the green circle, the AI will move away from the player (this prevents the AI from hugging the player). The solid red sphere is the current destination of the AI. Note that the AIreturns "home" when it can no longer "see" the player.

The AI also fires a ray towards it's target, if any walls intersect the ray, the AI will stop its pursuit, this will mean the player can hide from the AI even if it is nearby. Though this feature is not demonstrated in the video.

Please note that the sight range of the AI was made very short for the purposes of demonstration, and in the game it will be much harder to outrun.

Get The Unrobber

Leave a comment

Log in with itch.io to leave a comment.