diff options
| author | troido <troido@protonmail.com> | 2020-01-29 22:53:06 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-01-29 22:53:06 +0100 |
| commit | 286be37225b5de1fb438db0a4029fd391b35c13e (patch) | |
| tree | c865ca269f43d7666275d1d72096dad805135705 /src/assemblages.rs | |
| parent | 88f275bc427033b7981e0dc2fc5cb4b711fd5fb1 (diff) | |
players can no longer walk through walls
Diffstat (limited to 'src/assemblages.rs')
| -rw-r--r-- | src/assemblages.rs | 4 |
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) } } |
