Skip to content
premasagar edited this page Sep 24, 2011 · 5 revisions

These are the attributes you can include in your creature's data so other creatures can inspect your creature to interact with it. The should be added to creature.data.

kingdom (string, biological classification data - this can be grabbed from wikipedia for your creature)
phylum (string, see above)
class (string, see above)
order (string, see above)
family (string, see above)
genus (string, see above)
species (string, see above)

sight (number, sight range in pixels)
hearing (number, hearing range in pixels)
smell (number, smell range in pixels)

To add some properties:

myCreature.data({
    family: "panda"
});
Clone this wiki locally