Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add swarms of insects #64

Merged
merged 11 commits into from May 11, 2019

Conversation

Projects
None yet
5 participants
@sunreef
Copy link
Collaborator

commented May 9, 2019

Using the bee creature (still named bee for now), I added swarms of insects that move around using the Wander component. Each swarm is an entity that has several children, the bees.

The movement of each bee is a composition of the movement of the swarm entity and a kind of pendulum oscillation around the swarm center.

@moonheart08

This comment has been minimized.

Copy link

commented May 9, 2019

Maybe implement Boids Algorithm? It'd give a swarm a more interesting movement pattern

@sunreef

This comment has been minimized.

Copy link
Collaborator Author

commented May 9, 2019

@moonheart08, Boids looks really nice. I will need to design additional rules to make it look like a cloud of buzzing insects. Thanks for the pointer.

@sunreef sunreef force-pushed the sunreef:bee_tests branch from 5c0a377 to c34e5b2 May 9, 2019

@sunreef sunreef requested review from marot and khskarl May 10, 2019

@khskarl
Copy link
Member

left a comment

Great work! Besides the nitpicking on white lines, it LGTM 👍.

@@ -56,7 +56,7 @@ fn main() -> amethyst::Result<()> {

let pipe = Pipeline::build().with_stage(
Stage::with_backbuffer()
.clear_target([0.002, 0.01, 0.01, 1.0], 1.0)
.clear_target([0.02, 0.15, 0.02, 1.0], 1.0)

This comment has been minimized.

Copy link
@khskarl

khskarl May 10, 2019

Member

Were you editing this line for debugging reasons? 😅

This comment has been minimized.

Copy link
@sunreef

sunreef May 10, 2019

Author Collaborator

You mean the background color ? I just got tired of looking at a black background. Should I put it back ?

Show resolved Hide resolved src/systems/swarm_behavior.rs
Show resolved Hide resolved src/systems/swarm_behavior.rs
@marot

marot approved these changes May 11, 2019

Copy link
Collaborator

left a comment

LGTM. 🚀

@sunreef sunreef merged commit 1ac6c98 into amethyst:master May 11, 2019

1 check passed

continuous-integration/jenkins/pr-merge This commit looks good
Details

@sunreef sunreef deleted the sunreef:bee_tests branch May 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.