I have created some steering behaviour demos on an HTML 5 canvas. The demos can be found here.
These demos are based on the awesome Java steering demos by Craig Reynolds. At the moment I’ve only implemented a small number of the algorithms on his site, but hopefully this will change in the future.
The algorithms are a mix between the following two sources:
- Steering Behaviors For Autonomous Characters
By Craig Reynolds
- Artificial Intelligence for Games
By Ian Millington
The source is available under the BSD 2-Clause License and can be downloaded from a Mercurial repository on Bitbucket.
Note: It doesn’t seem to be working in IE at the moment.