load a head and his sounds
This commit is contained in:
12
src/main.rs
12
src/main.rs
@@ -112,9 +112,12 @@ fn setup_scene(mut commands: Commands, asset_server: Res<AssetServer>) {
|
||||
},
|
||||
));
|
||||
|
||||
commands.spawn((SceneRoot(
|
||||
asset_server.load(GltfAssetLabel::Scene(0).from_asset("models/mig.glb")),
|
||||
),));
|
||||
commands.spawn((
|
||||
SceneRoot(
|
||||
asset_server.load(GltfAssetLabel::Scene(0).from_asset("models/angry_demonstrator.glb")),
|
||||
),
|
||||
Transform::from_xyz(0.0, 5.0, 0.0),
|
||||
));
|
||||
}
|
||||
|
||||
fn spawn_box(
|
||||
@@ -137,6 +140,9 @@ fn spawn_box(
|
||||
|
||||
fn music(asset_server: Res<AssetServer>, mut commands: Commands) {
|
||||
commands.spawn(AudioPlayer::new(asset_server.load("sfx/music/02.ogg")));
|
||||
commands.spawn(AudioPlayer::new(
|
||||
asset_server.load("sfx/heads/angry_demonstrator.ogg"),
|
||||
));
|
||||
}
|
||||
|
||||
fn write_trenchbroom_config(server: Res<TrenchBroomServer>) {
|
||||
|
||||
Reference in New Issue
Block a user