Recently, I've been building a game with Bevy in my spare time.I was looking to add interesting behaviour to the agents in my game, and came across a crate called Bevy Behave. 1I thought I'd spend a few hours to look into how it works by creating a little interactive demo, and some explanatory writing to go along with it.It quickly got out of hand, and the little demo I was planning to make became bigger than I intended.It was a fun adventure, and I am glad to have it running interactively inside this very blog post.The code examples assume familiarity with Rust and Bevy, but feel free to explore even if you're not — it's still entertaining to play around!The demoStarting it requires fetching a bunch of WebAssembly (around 12 MB uncompressed), so take care if you're tight on data.2To start the demo, tap this button:If everything worked correctly (🤞) you should see a bunch of grey squares in the background.This sets the stage for my demo.To adjust the opacity of the demo, you can use…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.