Simulation video

Project Details

Overview: The prey and predator system is depends on the dependence one on another. I have divided the whole system in to four parts and implemented them into as a each individual part. Those are:
1. Movement.
2. Resource consumption.
3. Reproduction.
4. Evolution.

Code Design:  I have divided code in to components which are implemented by OOPS and Game Programming Patterns. For instance: 

  • Movement --> MoveTowards, Core is a target position.
  • Reproduction --> Coroutine, Inheritance for different objects.
  • Radius --> Line Renderer --> MathF.Sin and Cos (Degrees to radians)
  • Collision --> Physics.OverLap --> Follow Target 
  • Destroy --> List , Collider hit which reset the object position to start location
  • Evolution -->  State Design Pattern, to define states which are  move, evolve, old  and reproduce.

Link: " Github code Click here " code

Download

Download
PC.zip 30 MB

Leave a comment

Log in with itch.io to leave a comment.