started cam

This commit is contained in:
Back777space
2025-04-05 16:46:08 +02:00
parent 9ff0fcc3cb
commit 96b3f15292
2 changed files with 64 additions and 14 deletions

View File

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