Skip to content

Simple Gatherers simulation Rust, using Bevy. Port of the Breve Gatherers original.

Notifications You must be signed in to change notification settings

antont/gatherers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatherers

Simple Gatherers simulation in Rust, using Bevy. Port of the Breve Gatherers original.

video

Video

Live on the Web

What happens here?

The white boxes, 'ants', follow most simple rules, and don't know anything about each other:

  • go straight in random direction
  • if encounter food, pick it up, and turn back to a random direction
  • if encounter food, but is already carrying one, drop the food, and turn back

This results in the food getting gathered in piles, maybe eventually in a single pile, even though the gatherers don't know anything about each other, nor have such a goal really written explicitly. This is a simple emergent phenomenon.

Is a loose port of the original Gatherers demo made in Breve, back in 2002 or so. The original code is in: https://github.com/jonklein/breve/blob/master/demos/Gatherers.tz

Made using the Bevy game engine for Rust, reusing the wrap-around system and other lessons from the Asteroids clone Bevydroids. Thanks!

TODO:

About

Simple Gatherers simulation Rust, using Bevy. Port of the Breve Gatherers original.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages