aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-10-08 00:09:33 -0400
committerTeddy Wing2015-10-08 00:09:33 -0400
commit9a0207c7b4142c811e10edd0d822fa6f7a9fa4ee (patch)
tree06961870637f34d188678fe528904d7a56010b4f
parent953e75aa436a9ec8e4b6ccdd9d15806a5778cee2 (diff)
downloadvim-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.vim2
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'