25

Flocking Boids in Rust: With Piston vs Tetra vs Amethyst vs Bevy

 3 years ago
source link: https://www.youtube.com/watch?v=e0n9v565HR4
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Flocking Boids in Rust: With Piston vs Tetra vs Amethyst vs Bevy

1,311 views
•Apr 8, 2021

Follow me on: Twitter: https://twitter.com/camsjams​ GitHub: https://github.com/camsjams​ Medium: https://cameron-manavian.medium.com/

Boids is an artificial life program, developed by Craig Reynolds in 1986, which simulates the flocking behavior of birds. This is my exploratory look at Rust game engines using the Boids life program. It ends up being a basic showdown between bevy, tetra, amethyst, and piston.

By writing the boids program first and then swapping out the front end UI, I was able to quickly test some popular Rust game engines without too much hassle.

Features That I Made: - 100% Rust-built Boids algorithm translated from JS code - Front end graphics in Piston, Tetra, Amethyst, and Bevy - Polygon lines drawn into a very basic bird shape (Piston/Tetra) - Used sprite of a bird for Bevy

The full source is available at this GitHub repo, MIT Licensed: https://github.com/camsjams/rust-floc...

Credits: - 2d bird icon used in the Bevy version is from https://game-icons.net/​ - The photo of A Flock of Seagulls is from the band's promotional materials - For a quick jump-off point, I used this JS code repo for reference because I liked their implementation: https://github.com/michaelgundlach/flock​ - Piston Rust: https://github.com/PistonDevelopers/p...​ - Tetra Rust: https://github.com/17cupsofcoffee/tetra​ - Amethyst Rust: https://github.com/amethyst/amethyst​ - Bevy Rust: https://github.com/bevyengine/bevy

Fun Facts for Cool People: - I listened to A Flock of Seagulls album "A Flock of Seagulls", aside from their obvious hit song, check out "Modern Love Is Automatic" - Built in Visual Studio Code with Rust Analyzer - Recorded with OBS, cleaned and merged with ffmpeg, edited in Adobe Premiere Pro - Voice recorded with Blue Snowball USB Microphone - Yes, I could have used Cargo workspaces to make the install of each package more smooth, but chose not to for simplicity's sake


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK