dungeoncrawler/src/spawner.rs

13 lines
240 B
Rust
Raw Normal View History

2021-07-06 00:52:14 -05:00
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('@'),
},
));
}