My first Rust project's initialization and default modules, plus some starting bevy code.

This commit is contained in:
csd4ni3l
2025-12-22 15:20:52 +01:00
commit 90925ae173
7 changed files with 7403 additions and 0 deletions

26
src/main.rs Normal file
View File

@@ -0,0 +1,26 @@
use bevy::prelude::*;
fn spawn_camera(mut commands: Commands) {
commands.spawn(Camera2d::default());
}
pub fn setup(mut commands: Commands) {
spawn_camera(commands);
}
pub fn update(mut commands: Commands) {
}
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_systems(Startup, setup)
.add_systems(Update, update)
.run();
}
#[derive(Component)]
pub struct Person {
pub name: String
}