cam started

This commit is contained in:
Back777space
2025-04-05 18:38:09 +02:00
3 changed files with 874 additions and 420 deletions

View File

@@ -1,11 +1,8 @@
use bevy::{prelude::*};
use blenvy::{BlenvyPlugin, BlueprintInfo, GameWorldTag, HideUntilReady, SpawnBlueprint};
pub mod camera;
pub mod Camera;
use bevy::prelude::*;
fn main() -> AppExit {
App::new()
.add_plugins((DefaultPlugins))
// We need to register components to make them visible to Blenvy
.add_plugins((DefaultPlugins, BlenvyPlugin::default()))
.add_systems(Startup, setup)
@@ -13,11 +10,15 @@ fn main() -> AppExit {
.run()
}
fn setup(mut commands: Commands) {
commands.spawn((
BlueprintInfo::from_path("levels/World.glb"),
SpawnBlueprint,
HideUntilReady,
GameWorldTag,
));
#[derive(Component, Reflect)]
struct Player {
strength: f32,
perception: f32,
endurance: f32,
charisma: f32,
intelligence: f32,
agility: f32,
luck: f32,
}
fn setup(mut commands: Commands) {}