player now blockstile
This commit is contained in:
parent
8eb98b5baa
commit
454c2aab63
2 changed files with 21 additions and 21 deletions
|
|
@ -246,7 +246,6 @@ impl GameState for State {
|
|||
new_runstate = RunState::AwaitingInput;
|
||||
}
|
||||
RunState::AwaitingInput => {
|
||||
while particle_system::check_queue(&self.ecs) {
|
||||
// We refresh the index, and run anything that might
|
||||
// still be in the queue, just to make 100% sure that
|
||||
// there are no lingering effects from the last tick.
|
||||
|
|
@ -269,7 +268,6 @@ impl GameState for State {
|
|||
new_runstate = RunState::Ticking;
|
||||
}
|
||||
}
|
||||
}
|
||||
RunState::Ticking => {
|
||||
while new_runstate == RunState::Ticking && particle_system::check_queue(&self.ecs) {
|
||||
self.run_systems();
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ use super::{
|
|||
Skills,
|
||||
TileType,
|
||||
Viewshed,
|
||||
BlocksTile,
|
||||
};
|
||||
use crate::data::entity;
|
||||
use crate::gamesystem::*;
|
||||
|
|
@ -43,6 +44,7 @@ pub fn player(ecs: &mut World, player_x: i32, player_y: i32) -> Entity {
|
|||
let player = ecs
|
||||
.create_entity()
|
||||
.with(Position { x: player_x, y: player_y })
|
||||
.with(BlocksTile {})
|
||||
.with(Renderable {
|
||||
glyph: rltk::to_cp437('@'),
|
||||
fg: RGB::named(rltk::YELLOW),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue