cam started
This commit is contained in:
1266
Cargo.lock
generated
1266
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -4,5 +4,4 @@ version = "0.1.0"
|
|||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy = "0.14"
|
bevy = "0.15.3"
|
||||||
blenvy = "0.1.0-alpha.1"
|
|
||||||
|
|||||||
25
src/main.rs
25
src/main.rs
@@ -1,11 +1,8 @@
|
|||||||
use bevy::{prelude::*};
|
use bevy::prelude::*;
|
||||||
use blenvy::{BlenvyPlugin, BlueprintInfo, GameWorldTag, HideUntilReady, SpawnBlueprint};
|
|
||||||
|
|
||||||
pub mod camera;
|
|
||||||
pub mod Camera;
|
|
||||||
|
|
||||||
fn main() -> AppExit {
|
fn main() -> AppExit {
|
||||||
App::new()
|
App::new()
|
||||||
|
.add_plugins((DefaultPlugins))
|
||||||
// We need to register components to make them visible to Blenvy
|
// We need to register components to make them visible to Blenvy
|
||||||
.add_plugins((DefaultPlugins, BlenvyPlugin::default()))
|
.add_plugins((DefaultPlugins, BlenvyPlugin::default()))
|
||||||
.add_systems(Startup, setup)
|
.add_systems(Startup, setup)
|
||||||
@@ -13,11 +10,15 @@ fn main() -> AppExit {
|
|||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn setup(mut commands: Commands) {
|
#[derive(Component, Reflect)]
|
||||||
commands.spawn((
|
struct Player {
|
||||||
BlueprintInfo::from_path("levels/World.glb"),
|
strength: f32,
|
||||||
SpawnBlueprint,
|
perception: f32,
|
||||||
HideUntilReady,
|
endurance: f32,
|
||||||
GameWorldTag,
|
charisma: f32,
|
||||||
));
|
intelligence: f32,
|
||||||
|
agility: f32,
|
||||||
|
luck: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn setup(mut commands: Commands) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user