diff options
| author | Teddy Wing | 2015-10-08 00:09:33 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-10-08 00:09:33 -0400 |
| commit | 9a0207c7b4142c811e10edd0d822fa6f7a9fa4ee (patch) | |
| tree | 06961870637f34d188678fe528904d7a56010b4f | |
| parent | 953e75aa436a9ec8e4b6ccdd9d15806a5778cee2 (diff) | |
| download | vim-space-vlaze-9a0207c7b4142c811e10edd0d822fa6f7a9fa4ee.tar.bz2 | |
mappings#Listen: Show "Game Over" screen on `q`
When pressing `q`, in addition to quitting the game also display the
"Game Over" screen.
Without this, when you quit the game the board would stay the same as it
was just before pressing `q`. It seemed kind of confusing not to have
any feedback that you quit the game so I figured I would do this to at
least let you know that you successfully quit the game.
| -rw-r--r-- | autoload/space_vlaze/mappings.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/space_vlaze/mappings.vim b/autoload/space_vlaze/mappings.vim index 22c532a..bdf5bc9 100644 --- a/autoload/space_vlaze/mappings.vim +++ b/autoload/space_vlaze/mappings.vim @@ -13,7 +13,7 @@ function! space_vlaze#mappings#Listen() let c = nr2char(getchar(0)) if c ==# 'q' - call space_vlaze#game#Quit() + call space_vlaze#game#GameOver() elseif c ==# 'p' call space_vlaze#game#Pause() elseif c ==# 'h' |
