#game-ai #bevy #gamedev #yoetz

bevy-yoetz

A decision-making AI for the Bevy game engine

4 releases (breaking)

new 0.4.0 Apr 25, 2025
0.3.0 Nov 30, 2024
0.2.0 Jul 4, 2024
0.1.0 Mar 6, 2024

#996 in Game dev

Download history 2/week @ 2025-02-01 2/week @ 2025-02-15 5/week @ 2025-02-22 6/week @ 2025-03-01 1/week @ 2025-03-08

259 downloads per month

MIT/Apache

46KB
213 lines

Build Status Latest Version Rust Documentation

Bevy Yoetz

Yoetz is a decision-making AI for the Bevy game engine.

Features

  • Describe the various strategies the AI agent can use by using a device macro on an enum.
  • Write systems that suggest and score behaviors from that enum.
  • AI informs user systems on the decision using the ECS (adds and removes components based on the strategy it chose)
  • Suggestions can carry data that will appear in the strategy components. The exact behavior of that data can be customized in the derive macro.

Example

Code: examples/example.rs

WASM: https://idanarye.github.io/bevy-yoetz/demos/example

Use the arrow keys to move the yellow square. The red square is controlled by AI. The AI's status is displayed above it.

https://github.com/idanarye/bevy-yoetz/assets/1149255/ad98e48f-8c86-451d-9a0f-82d9f6d1bac2

Versions

bevy bevy-yoetz
0.15 0.4
0.14 0.2-0.3
0.13 0.1

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~22–31MB
~527K SLoC