This commit is contained in:
LorrensP-2158466 committed 2025-04-05 16:46:54 +02:00
1 parent 5e7162ae12
commit 6b8fc18970
3 files changed
+863 -418

No files matched your search

Generated
+860 -406
View File
File diff suppressed because it is too large. Load diff
+1 -2
View File
@@ -4,5 +4,4 @@ version = "0.1.0"
edition = "2024"
[dependencies]
bevy = "0.14"
blenvy = "0.1.0-alpha.1"
bevy = "0.15.3"
+2 -10
View File
@@ -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) {}