teecity/src/player.rs

9 lines
180 B
Rust
Raw Normal View History

2023-05-04 17:41:55 +00:00
use bevy::prelude::*;
#[derive(Component)]
pub struct Player;
pub fn add_player(mut commands: Commands) {
commands.spawn((Player, Name::new("Ryo"), Transform::default()));
}