Skip to content

Jmoreno1988/boids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boids

A distributed behavioral model

Boids is an artificial life computer model, developed by Craig Reynolds in 1986, which simulates the flocking behaviour of birds. More info:

Examples

Installation

$ git clone https://github.com/Jmoreno1988/boids.git

Usage

    var world = new World({
        idWorld: "idCanvasHTML",
        width: 400,
        height: 400
    });
    
    var nBoids = 150;
    for (var i = 0; i < nBoids; i++)
        world.newBoid(new Boid({
            world: world,
            geoData: {
                position: new Vector(100, 100),
                velocity: new Vector(10, 10),
                acceleration: new Vector(0, 0)
        },
        behavior: ["separation", "alignment", "cohesion"],
        sizeBody: 12
    }));

    world.run();

Version

0.4

Development

Want to contribute? Great!... Fork, fork, fork!! ;)

License

GNU GENERAL PUBLIC LICENSE v3

Copyright (C) 2016 JMoreno Games.

About

A distributed behavioral model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors