Dummy hand drawing
This commit is contained in:
parent
78af40ba77
commit
19f9dc6e8d
6 changed files with 31 additions and 5 deletions
17
src/lib.rs
17
src/lib.rs
|
|
@ -1,3 +1,20 @@
|
|||
use bevy::prelude::*;
|
||||
use crate::hand::Hand;
|
||||
|
||||
pub mod hand;
|
||||
pub mod animal;
|
||||
pub mod properties;
|
||||
|
||||
pub fn setup(
|
||||
mut commands: Commands,
|
||||
mut meshes: ResMut<Assets<Mesh>>,
|
||||
mut materials: ResMut<Assets<ColorMaterial>>
|
||||
) {
|
||||
commands.spawn(Camera2d);
|
||||
commands.spawn((
|
||||
Hand::new("Player1".to_string()),
|
||||
Transform::from_xyz(0., -300., 0.),
|
||||
Mesh2d(meshes.add(Rectangle::new(100., 100.))),
|
||||
MeshMaterial2d(materials.add(ColorMaterial::from_color(Srgba::rgb(0.5, 0.5, 0.5))))
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue