Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
//! This example demonstrates how to play a one-shot sample.
use bevy::{log::LogPlugin, prelude::*};
use bevy_seedling::prelude::*;
fn main() {
App::new()
.add_plugins((
MinimalPlugins,
LogPlugin::default(),
AssetPlugin::default(),
SeedlingPlugins,
))
.add_systems(
Startup,
|server: Res<AssetServer>, mut commands: Commands| {
// Spawning a `SamplePlayer` component will play a sample
// once as soon as it's loaded. If no pool is specified
// and no effects are applied, the sample will be played in
// the `DefaultPool`.
commands.spawn(SamplePlayer::new(server.load("caw.ogg")));
},
)
.run();
}