Dolda2000 GitWeb
/
kaka
/
rust-sdl-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Delete smaller wall regions and leave only one room
[kaka/rust-sdl-test.git]
/
src
/
core
/
game.rs
diff --git
a/src/core/game.rs
b/src/core/game.rs
index
1bdaa8d
..
3e017b1
100644
(file)
--- a/
src/core/game.rs
+++ b/
src/core/game.rs
@@
-57,6
+57,9
@@
impl AppState for GameState {
Event::KeyDown { keycode: Some(Keycode::KpMinus), .. } => {
self.world.level.decrease_iteration();
}
+ Event::KeyDown { keycode: Some(Keycode::KpEnter), .. } => {
+ self.world.level.filter_regions();
+ }
_ => {}
}
}