[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 86d701a167 131/472: Introduce pacmacs--load-next-l
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 86d701a167 131/472: Introduce pacmacs--load-next-level |
Date: |
Thu, 6 Jan 2022 21:59:18 -0500 (EST) |
branch: elpa/pacmacs
commit 86d701a1675a65fcfbe859b6b7d1b32513d0a529
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Introduce pacmacs--load-next-level
It's a combination of pacmacs--switch-to-next-level and
pacmacs--load-current-level functions. So the
pacmacs--switch-to-next-level itself is not needed anymore.
Close #98
---
pacmacs.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pacmacs.el b/pacmacs.el
index 53b9d099b9..61eb8c3827 100644
--- a/pacmacs.el
+++ b/pacmacs.el
@@ -114,10 +114,11 @@
(pacmacs-load-map (aref pacmacs-levels
pacmacs-current-level)))
-(defun pacmacs--switch-to-next-level ()
+(defun pacmacs--load-next-level ()
(setq pacmacs-current-level
(mod (1+ pacmacs-current-level)
- (length pacmacs-levels))))
+ (length pacmacs-levels)))
+ (pacmacs--load-current-level))
(defun pacmacs--make-wall-cell (row column)
(list :current-animation (pacmacs-make-anim (list (pacmacs-make-frame '(0 0
40 40) 100))
@@ -349,8 +350,7 @@
(pacmacs--detect-ghost-collision)
(when (equal pacmacs-game-state 'play)
(pacmacs--step-ghosts)))
- (pacmacs--switch-to-next-level)
- (pacmacs--load-current-level)
+ (pacmacs--load-next-level)
(pacmacs--switch-to-prepare-state))))
(defun pacmacs-death-state-logic ()
- [nongnu] elpa/pacmacs 427b4f823e 088/472: Add edebug specs for plist-bind macro (#68), (continued)
- [nongnu] elpa/pacmacs 427b4f823e 088/472: Add edebug specs for plist-bind macro (#68), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1ed7f14e30 099/472: UTs for pacmacs--init-board-test (#75), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs a802074eea 109/472: Add set/get functions for board (#74), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs de66c1ce17 112/472: Refactor out pacmacs--step-point (#74), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs b0561eb59f 111/472: Refactor pacmacs--cell-tracked-p (#74), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 317f9b85b7 114/472: Refactor pacmacs--track-point (#74), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 5233bac0c5 105/472: UT for pacmacs--put-object-test (#75), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs d2c449734e 124/472: Merge branch 'pacman-death-69'. Close #69, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1ed9c057cc 127/472: Add padding above the lives, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9e7f67e368 126/472: Implement live mechanics. Close #86, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 86d701a167 131/472: Introduce pacmacs--load-next-level,
ELPA Syncer <=
- [nongnu] elpa/pacmacs 3d49405193 136/472: Reset the score on start, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs a0e3b6fe73 138/472: Implement level is beaten state. Close #99, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 359a0facc5 140/472: Optimize empty cell rendering, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 420dbec3e6 150/472: Register score on Game Over (#92), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 6f174d6239 156/472: Access resources in more general way (#95), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 330c69201f 160/472: Fix UTs, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 131a070556 163/472: Merge pull request #110 from syohex/fix-package, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs bb622648e3 162/472: Add Package-Requires header for dependencies, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0c0aee723a 170/472: Fix regexp bug in pacmacs--levelname-from-filename, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs f28d928e89 177/472: Update README.md, ELPA Syncer, 2022/01/06