/Walker

A simple demo for creating (spawning) objects (walkers) which moves randomly on the canvas using P5 JS library

Primary LanguageJavaScript

Walker

A simple demo for creating (spawning) objects (walkers) which moves randomly on the canvas using P5 JS library

A Walker can take a step in 4 possible directions:

  1. Left (East)
  2. Right (West)
  3. Forward (North)
  4. Backward (South)

A random number is generated (between 1-4) for every step and based on that random number it is decided which direction the walker will take a step