From 286be37225b5de1fb438db0a4029fd391b35c13e Mon Sep 17 00:00:00 2001 From: troido Date: Wed, 29 Jan 2020 22:53:06 +0100 Subject: players can no longer walk through walls --- src/assemblages.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/assemblages.rs') 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) } } -- cgit