again
This commit is contained in:
12
src/main.rs
12
src/main.rs
@@ -1,9 +1,8 @@
|
||||
use bevy::prelude::*;
|
||||
use blenvy::{BlenvyPlugin, BlueprintInfo, GameWorldTag, HideUntilReady, SpawnBlueprint};
|
||||
|
||||
fn main() -> AppExit {
|
||||
App::new()
|
||||
.add_plugins((DefaultPlugins, BlenvyPlugin::default()))
|
||||
.add_plugins((DefaultPlugins))
|
||||
// We need to register components to make them visible to Blenvy
|
||||
.register_type::<Player>()
|
||||
.add_systems(Startup, setup)
|
||||
@@ -21,11 +20,4 @@ struct Player {
|
||||
luck: f32,
|
||||
}
|
||||
|
||||
fn setup(mut commands: Commands) {
|
||||
commands.spawn((
|
||||
BlueprintInfo::from_path("levels/World.glb"),
|
||||
SpawnBlueprint,
|
||||
HideUntilReady,
|
||||
GameWorldTag,
|
||||
));
|
||||
}
|
||||
fn setup(mut commands: Commands) {}
|
||||
|
||||
Reference in New Issue
Block a user