ThallasTV / HelloWorldMcomp

Mcomp Group Project
0 stars 0 forks source link

AI Implementation #11

Open Ryan-Fletcher opened 4 years ago

Ryan-Fletcher commented 4 years ago

AI Techniques to experiment with:

Decision Making

Movement

Evolution

Sensors

Ryan-Fletcher commented 4 years ago

Research Material

Unity Artificial Intelligence Programming - Fourth Edition https://subscription.packtpub.com/book/game-development/9781789533910

Unity 2018 Artificial Intelligence Cookbook - Second Edition https://subscription.packtpub.com/book/game-development/9781788626170

Unity 2017 Game AI programming - Third Edition https://subscription.packtpub.com/book/game-development/9781788477901

Unity 4.x Game AI Programming https://subscription.packtpub.com/book/game-development/9781849693400

Practical Game AI Programming https://subscription.packtpub.com/book/game-development/9781787122819

Behavior Trees or Finite State Machines | OpsiveS https://opsive.com/support/documentation/behavior-designer/behavior-trees-or-finite-state-machines/

Finite State Machines and the AI of Half-Life | AI 101 https://www.youtube.com/watch?v=JyF0oyarz4U

ThallasTV commented 4 years ago

Basic Behaviour Tree with code

https://hub.packtpub.com/building-your-own-basic-behavior-tree-tutorial/

Ryan-Fletcher commented 4 years ago

Basic A* Implemented (requires further fixes) c381a1e1c7b4c2567e576bc6d7bdbf9799e0a6fc

Ryan-Fletcher commented 4 years ago

A* works, however the obstacles are only being set to center position.

TBF: 01/11/19

ThallasTV commented 4 years ago

@Ryan-Fletcher Can we have an update please?

Ryan-Fletcher commented 4 years ago

Using Behaviour Bricks, implemented an AI that can switch between Wandering the area and searching for resources.

AI successfully searches for resources, however there's an issue switching from resource back to wander script.

Ryan-Fletcher commented 4 years ago

Committed the behaviour tree to the BehaviourTree branch.

Implemented spawners for the animals, and the humans can successfully chase them down (need to add damage and harvesting behaviour).

Ryan-Fletcher commented 4 years ago

Harvest script has been made, needs more changes before committing

Ryan-Fletcher commented 4 years ago

Health and Damage scripts have been implemented, however the health doesn't increment correctly and sometimes causes the human's target's game object to be set to null.

Ryan-Fletcher commented 4 years ago

Created a new damage script that's ranged instead of melee. This should be easier to recognise damage dealt and should stop objects from rubbing into each other. Will push into repository tomorrow as the labs are closing.

Ryan-Fletcher commented 4 years ago

Committed my current work. Haven't been able to get the updated scenes as for some reason it takes hours just to open the master version in Unity and often freezes. Will try at home if this is an issue in the labs.