https://github.com/shillysit/immaboid
AI steering behavior library for FlashPunk
https://github.com/shillysit/immaboid
Last synced: 3 months ago
JSON representation
AI steering behavior library for FlashPunk
- Host: GitHub
- URL: https://github.com/shillysit/immaboid
- Owner: SHiLLySiT
- Archived: true
- Created: 2014-01-10T07:01:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-10T08:44:08.000Z (over 11 years ago)
- Last Synced: 2025-01-27T13:15:22.949Z (4 months ago)
- Language: ActionScript
- Size: 238 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ImmaBoid
=============AI steering behavior library for FlashPunk
* Demo can be found here: http://pixelsquidgames.net/projects/immaboid/immaboid_demo.html
* The demo uses my own branch of FlashPunk: https://github.com/SHiLLySiT/FlashPunk
* NOTE: my demo and version of FlashPunk require Flash 11.2+Features
=============
* Base boid class - extends FlashPunk's entity class to add mass, velocity, and maxspeed
* Boids support multiple behaviors
* Assortment of behaviors to start fromUsage
=============Simply extend the Boid class and set two parameters:
```ActionScript
public class Zomboid extends Boid
{
public function Zomboid(x:Number = 0, y:Number = 0)
{
super(x, y);
maxSpeed = 150;
mass = 10;
}
}
```Then add your some behaviors:
```ActionScript
addBehavior(new FleeBehavior(someScaryBoid);
addBehavior(new FollowPathBehavior(pathToAwsome, 20));
```Changelog
=============
1/09/2014
- Initial commit