summaryrefslogtreecommitdiff
path: root/src/assemblages.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/assemblages.rs')
-rw-r--r--src/assemblages.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/assemblages.rs b/src/assemblages.rs
index 2a74030..d56e0f3 100644
--- a/src/assemblages.rs
+++ b/src/assemblages.rs
@@ -6,7 +6,7 @@ use specs::{
EntityBuilder
};
-use super::components::{Visible};
+use super::components::{Visible, Blocking};
@@ -21,7 +21,7 @@ pub struct Wall;
impl Assemblage for Wall {
fn build<'a>(&self, builder: EntityBuilder<'a>) -> EntityBuilder<'a>{
- builder.with(Visible{sprite: "wall".to_string(), height: 2.0})
+ builder.with(Visible{sprite: "wall".to_string(), height: 2.0}).with(Blocking)
}
}