13 lines
244 B
Rust
13 lines
244 B
Rust
|
pub use crate::prelude::*;
|
||
|
|
||
|
pub fn spawn_player(ecs: &mut World, pos: Point) {
|
||
|
ecs.push((
|
||
|
Player,
|
||
|
pos,
|
||
|
Render {
|
||
|
color: ColorPair::new(WHITE, BLACK),
|
||
|
glyph: to_cp437('@'),
|
||
|
},
|
||
|
));
|
||
|
}
|