diff --git a/index.html b/index.html index 5a25f92..d5cfa90 100644 --- a/index.html +++ b/index.html @@ -198,7 +198,7 @@ elementary.animate();

The following methods and attributes can be passed in an object as the first argument:

Required

-
  • +
  • char character

    ASCII character used to visually represent a creature.

  • -
  • +
  • int [3] color

    RGB components of a creature's display color.

  • -
  • +
  • function colorFn

    How a creature's color is determined at each step.

  • -
  • +
  • int efficiency

    Conversion ratio of food to energy. Food energy × efficiency = gained energy.

  • -
  • +
  • function isDead

    Determines whether a creature should be removed at the beginning of a step.

  • -
  • +
  • function move

    How a creature moves.

  • -
  • +
  • float moveLv

  • -
  • +
  • function reproduce

    How a creature reproduces.

  • -
  • +
  • float reproduceLv

    Percentage of a creature's max energy above which it will reproduce (used in the default process method).

  • -
  • +
  • int size

    A creature's size; by default, creatures can only eat creatures smaller than them.

  • -
  • +
  • int sustainability

    Number of visible food sources needed before a creature will eat.

  • -
  • +
  • function wait

    What happens when a creature waits.