beet
use bevy::prelude::*;
use beet::prelude::*;
fn main(){
let mut app = App::new();
app.add_plugins((
DefaultPlugins,
DefaultBeetPlugins
));
app.world_mut().spawn((
Running,
Repeat,
SequenceSelector::default(),
))
.with_children(|parent| {
parent.spawn((
LogOnRun("Hello".into()),
InsertOnRun(RunResult::Success),
));
parent.spawn((
LogOnRun("World".into()),
InsertOnRun(RunResult::Success),
));
});
app.run();
}
Examples
Most examples rely on assets that can be downloaded with the following commands, or manually from here.
curl -o ./assets.tar.gz https://storage.googleapis.com/beet-misc/assets.tar.gz
tar -xzvf ./assets.tar.gz
rm ./assets.tar.gz
The examples for beet are scene-based. As Bevy scene workflows are a wip, there are a few Placeholder types used for not-yet-serializable types like cameras, asset handles etc.
Bevy Versions
bevy |
beet |
| 0.12 |
0.0.1 |
| 0.14 |
0.0.2 |