initial toying around with bevy

This commit is contained in:
Hartmut Seichter 2022-07-15 22:23:24 +02:00
commit 0e1061609c
4 changed files with 3295 additions and 0 deletions

22
src/main.rs Normal file
View file

@ -0,0 +1,22 @@
use bevy::prelude::*;
#[derive(Component)]
struct Position { x: f32, y:f32}
fn hello_world() {
println!("Hello World!");
}
fn print_position_system(query : Query<&Transform>) {
for transform in query.iter() {
println!("position {:?}", transform.translation)
}
}
fn main() {
App::new()
.add_system(hello_world)
.run();
}