handsonrust/src/spawners.rs

13 lines
244 B
Rust
Raw Normal View History

2021-08-28 04:25:52 +00:00
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('@'),
},
));
}