emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/pacmacs e037903a5b 401/472: Switch to game over mode on ga


From: ELPA Syncer
Subject: [nongnu] elpa/pacmacs e037903a5b 401/472: Switch to game over mode on game over state (#134)
Date: Thu, 6 Jan 2022 21:59:43 -0500 (EST)

branch: elpa/pacmacs
commit e037903a5b18a30b9b1568fba07837cdd13c8be8
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>

    Switch to game over mode on game over state (#134)
---
 pacmacs.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pacmacs.el b/pacmacs.el
index 4c60eeb92e..18c950de4f 100644
--- a/pacmacs.el
+++ b/pacmacs.el
@@ -558,8 +558,13 @@
 
 (defun pacmacs--switch-to-game-over-state ()
   (setq pacmacs-game-state 'game-over)
+
   (pacmacs--load-map "game-over")
-  (pacmacs--register-new-score pacmacs-score))
+  (pacmacs-destroy)
+  (pacmacs--render-state)
+
+  (pacmacs-game-over-mode)
+  (read-only-mode 0))
 
 (defun pacmacs--switch-to-play-state ()
   (setq pacmacs-game-state 'play)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]