Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Features

* Creates multiple fruit flys which fly and walk around the browser window.
* Creates multiple spiders which walk around the browser window.
* Creates multiple moths which walk around the browser window.
* Flys are responsive to mouse movements (optional) and mouseover events.


Expand Down Expand Up @@ -50,6 +51,13 @@ You can use SpiderController() as a shortcut for loading options and the sprite
new SpiderController({'minBugs':2, 'maxBugs':6});
```

You can use MothController() as a shortcut for loading options and the sprite for the moths.

```
new MothController({'minBugs':1, 'maxBugs':3});
```


See example.html

BugController constructor can optionally take an object of options. To make this js more async friendly, you can adjust the default options at the top of bug.js, and then instantiate at the bottom of the file as above. This will allow one to wrap the entire script in a closure to prevent any global window name space overlaps.
Expand Down
Loading