/FlockBehaviour

Programming flock behaviour in Typescript

Primary LanguageTypeScript

Flock Behaviour

screenshot.png

  • Fenton the dog runs after the mouse pointer. He runs slower when he is nearer the mouse.
  • The sheep run away from Fenton. Sheep run slower when Fenton is further away.

Play the demo

About the code

How to run locally

How to edit

  • Install Typescript npm install -g typescript
  • Transpile the code in watch mode by typing tsc -w in the terminal