[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 69437be130 259/472: Extra points for eating big pi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 69437be130 259/472: Extra points for eating big pills (#81) |
Date: |
Thu, 6 Jan 2022 21:59:29 -0500 (EST) |
branch: elpa/pacmacs
commit 69437be130144d3cfdff63e584e535e569436acb
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Extra points for eating big pills (#81)
---
maps/map01.txt | 2 +-
pacmacs.el | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/maps/map01.txt b/maps/map01.txt
index bee14b9a8d..f5e806c521 100644
--- a/maps/map01.txt
+++ b/maps/map01.txt
@@ -1,7 +1,7 @@
##########
#o. ##
######
- ####
+ +####
#### ###..
# #. #
## #.##
diff --git a/pacmacs.el b/pacmacs.el
index 542a4dacdc..a40c7c8c4f 100644
--- a/pacmacs.el
+++ b/pacmacs.el
@@ -130,17 +130,18 @@
:column column
:type 'wall))
-(defun pacmacs--make-pill (row column anim-name)
+(defun pacmacs--make-pill (row column anim-name points)
(list :current-animation (pacmacs-load-anim anim-name)
:row row
:column column
- :type 'pill))
+ :type 'pill
+ :points points))
(defun pacmacs--make-regular-pill (row column)
- (pacmacs--make-pill row column "Pill"))
+ (pacmacs--make-pill row column "Pill" 10))
(defun pacmacs--make-big-pill (row column)
- (pacmacs--make-pill row column "Big-Pill"))
+ (pacmacs--make-pill row column "Big-Pill" 50))
(defun pacmacs--make-ghost (row column)
(list :row row
@@ -335,7 +336,7 @@
(column :column))
pacmacs--player-state
(-when-let (pill (pacmacs--pill-at-p row column))
- (setq pacmacs-score (+ pacmacs-score 10))
+ (setq pacmacs-score (+ pacmacs-score (plist-get pill :points)))
(setq pacmacs--pills (-remove (-partial #'eql pill) pacmacs--pills))
(pacmacs--remove-object pill))))
- [nongnu] elpa/pacmacs 0126187ee8 428/472: Merge pull request #197 from codingteam/sorting-score-table-on-read-write-194, (continued)
- [nongnu] elpa/pacmacs 0126187ee8 428/472: Merge pull request #197 from codingteam/sorting-score-table-on-read-write-194, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 988c61b190 432/472: Load leves from custom folder (#191), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 23d315e54f 437/472: Trigger MELPA update, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 66dd6b0aee 446/472: Enable truncate lines for score table (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 25385d9337 458/472: Add toggle-debug-output function, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e7abee5bd3 091/472: Lazy init of empty cell (#70), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs af3407e676 047/472: Sprite sheets as part of anim object. Close #24, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs edf7b2d1b3 069/472: Use plist-bind macro for pacman-anim-get-frame (#54), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 61b07fd669 252/472: Add some screenshot of the latest version, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs f1f7f6f407 256/472: Animated big pills (#81), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 69437be130 259/472: Extra points for eating big pills (#81),
ELPA Syncer <=
- [nongnu] elpa/pacmacs 4ef8e6cdb4 260/472: Merge branch 'big-pills-81'. Close #81, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 59685e56a4 261/472: Clean elc in `tools/compile.el` script. Close #147, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 31de569656 273/472: Extend pacmacs--normalize-wall-bits UT, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 4624b8a64c 307/472: Rename ghost-blinking-threshold cons (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs af0fe59457 309/472: Fix FIXME regarding Emacs 24.3 support (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0326ad4081 318/472: Add module for working with vectors (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 84598f8f20 328/472: UT for pacmacs--load-next-level, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 4862789072 335/472: Terrify/unterrify ghost without losing state, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1e4d6cd8b7 340/472: UT for terrified-ghost function (#171), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3e25c67590 345/472: Add script for semi-automatic ATT measuring, ELPA Syncer, 2022/01/06