Skip to content

Commit

Permalink
release: 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchantey committed Dec 8, 2024
1 parent c9b7bcb commit ac7f0a2
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 39 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 14 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ opt-level = 1
opt-level = 3

[workspace.package]
version = "0.0.4-rc.4"
version = "0.0.4"
edition = "2021"
description = "A very flexible AI behavior library for games and robotics."
description = "A modular behavior library for the Bevy Engine."
documentation = "https://beetmash.com/docs/beet"
readme = "README.md"
homepage = "https://beetmash.com/docs/beet"
Expand All @@ -32,13 +32,13 @@ members = ["crates/*", "crates/beet_flow/macros"]

[workspace.dependencies]
## internal
beet = { path = "./", version = "0.0.4-rc.4" }
beet_spatial = { path = "crates/beet_spatial", version = "0.0.4-rc.4", default-features = false }
beet_flow = { path = "crates/beet_flow", version = "0.0.4-rc.4" }
beet_flow_macros = { path = "crates/beet_flow/macros", version = "0.0.4-rc.4" }
beet_ml = { path = "crates/beet_ml", version = "0.0.4-rc.4" }
beet_examples = { path = "crates/beet_examples", version = "0.0.4-rc.4" }
emby = { path = "crates/emby", version = "0.0.4-rc.4" }
beet = { path = "./", version = "0.0.4" }
beet_spatial = { path = "crates/beet_spatial", version = "0.0.4", default-features = false }
beet_flow = { path = "crates/beet_flow", version = "0.0.4" }
beet_flow_macros = { path = "crates/beet_flow/macros", version = "0.0.4" }
beet_ml = { path = "crates/beet_ml", version = "0.0.4" }
beet_examples = { path = "crates/beet_examples", version = "0.0.4" }
emby = { path = "crates/emby", version = "0.0.4" }

## local
beetmash = { version = "0.0.7" }
Expand Down Expand Up @@ -116,7 +116,11 @@ keywords.workspace = true
categories.workspace = true

include = [
"scenes/*",
"CHANGELOG.md",
"README.md",
"/src",
"/examples",
"/scenes",
]

[features]
Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ world.spawn(SequenceFlow)

## Examples


> ⚠️⚠️⚠️ If you'd like to check out this repo please use the stable [v0.0.3](https://github.com/mrchantey/beet/tree/v0.0.3) commit ⚠️⚠️⚠️
>
> Beet and my other crates it depends on are currently on a scene serialization bugfix Bevy fork, see [this issue](https://github.com/bevyengine/bevy/issues/14300) for details. The fix is scheduled for the `0.14.2` milestone so fingers crossed we'll be back on bevy main from then.


The examples for beet are *scene-based*, meaning each example provides a scene for a common base app. As Bevy scene workflows are a wip, there are a few `Placeholder` types used for not-yet-serializable types like cameras, asset handles etc.

Most examples rely on assets that can be downloaded with the following commands, or manually from [here](https://beetmash-public.s3.us-west-2.amazonaws.com/assets.tar.gz).
Expand Down
28 changes: 17 additions & 11 deletions examples/hello_state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,25 @@ fn main() {
app.insert_resource(BeetDebugConfig::default())
.add_plugins(minimal_beet_example_plugin);
let world = app.world_mut();
let say_world = world.spawn((
Name::new("World"),
)).id();


world.spawn((
Name::new("Hello"),
EndOnRun::success(),
RunOnRunResult::new_with_target(say_world),
)).flush_trigger(OnRun);
let state2 = world.spawn((
Name::new("state2"),
EndOnRun::success(),
)).id();

// transitions are just behaviors that always trigger the next behavior
let transition = world.spawn((
Name::new("transition"),
EndOnRun::success(),
RunOnRunResult::new_with_target(state2),
)).id();

world.spawn((
Name::new("G'day"),
EndOnRun::success(),
RunOnRunResult::new_with_target(say_world),
Name::new("state1"),
EndOnRun::success(),
// here RunOnRunResult can be swapped out with a control flow action
// that decides which state to go to next
RunOnRunResult::new_with_target(transition),
)).flush_trigger(OnRun);
}
4 changes: 2 additions & 2 deletions examples/hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ fn main() {
EndOnRun::success(),
))
.with_child((
Name::new("child2"),
EndOnRun::success(),
Name::new("child2"),
EndOnRun::success(),
))
.flush_trigger(OnRun);
}

0 comments on commit ac7f0a2

Please sign in to comment.