From 9a0207c7b4142c811e10edd0d822fa6f7a9fa4ee Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 8 Oct 2015 00:09:33 -0400 Subject: 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. --- autoload/space_vlaze/mappings.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- cgit v1.2.3