[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 6b43cde65d 223/472: Add big pill game object (#81)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 6b43cde65d 223/472: Add big pill game object (#81) |
Date: |
Thu, 6 Jan 2022 21:59:26 -0500 (EST) |
branch: elpa/pacmacs
commit 6b43cde65d8316f41cb5b88d851181364b7f8c27
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Add big pill game object (#81)
---
pacmacs.el | 24 +++++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/pacmacs.el b/pacmacs.el
index 9d6b3f4cb4..86028da966 100644
--- a/pacmacs.el
+++ b/pacmacs.el
@@ -60,6 +60,7 @@
(defvar pacmacs--ghosts nil)
(defvar pacmacs--wall-cells nil)
(defvar pacmacs--pills nil)
+(defvar pacmacs--big-pills nil)
(defvar pacmacs--object-board nil)
(defvar pacmacs--track-board nil)
@@ -130,11 +131,17 @@
:column column
:type 'wall))
-(defun pacmacs--make-pill (row column)
- (list :current-animation (pacmacs-load-anim "Pill")
+(defun pacmacs--make-pill (row column anim-name type)
+ (list :current-animation (pacmacs-load-anim anim-name)
:row row
:column column
- :type 'pill))
+ :type type))
+
+(defun pacmacs--make-regular-pill (row column)
+ (pacmacs--make-pill row column "Pill" 'pill))
+
+(defun pacmacs--make-big-pill (row column)
+ (pacmacs--make-pill row column "Big-Pill" 'big-pill))
(defun pacmacs--make-ghost (row column)
(list :row row
@@ -437,7 +444,10 @@
(pacmacs--put-object pacmacs--player-state)
(dolist (wall pacmacs--wall-cells)
- (pacmacs--put-object wall)))
+ (pacmacs--put-object wall))
+
+ (dolist (big-pill pacmacs--big-pills)
+ (pacmacs--put-object big-pill)))
(defun pacmacs--render-state ()
(with-current-buffer pacmacs-buffer-name
@@ -522,6 +532,7 @@
(setq pacmacs--pills nil)
(setq pacmacs--ghosts nil)
(setq pacmacs--player-state nil)
+ (setq pacmacs--big-pills nil)
(cl-loop
for line being the element of lines using (index row)
@@ -530,7 +541,10 @@
(add-to-list 'pacmacs--wall-cells
(pacmacs--make-wall-cell row column)))
((char-equal x ?.)
- (add-to-list 'pacmacs--pills (pacmacs--make-pill
row column)))
+ (add-to-list 'pacmacs--pills
(pacmacs--make-regular-pill row column)))
+
+ ((char-equal x ?+)
+ (add-to-list 'pacmacs--big-pills
(pacmacs--make-big-pill row column)))
((char-equal x ?o)
(setq pacmacs--player-state (pacmacs--make-player
row column)))
- [nongnu] elpa/pacmacs 0eeb82ebc9 425/472: Merge pull request #193 from codingteam/rework-nick-after-death-134, (continued)
- [nongnu] elpa/pacmacs 0eeb82ebc9 425/472: Merge pull request #193 from codingteam/rework-nick-after-death-134, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs ce1054fab3 433/472: Remove redundant find-resource-file call (#191), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 21a99294ad 440/472: Add score sign (#203), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9fd3009e5a 442/472: Merge pull request #206 from codingteam/bug/quit-game-over-with-q-202, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 95cce606fd 024/472: Support for Aseprite animation format. Close #16, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 09aa49c6b0 065/472: UTs for pacman-image. Close #52, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs ee893d28bd 180/472: Add module for recording action (#115), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 95c046205a 187/472: Compilation warnings as errors (#123), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs fe40eb20c7 190/472: Merge branch 'coverage-dropped-124' (#124), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 8e36b66a6f 199/472: Make object-board contain list of object (#126), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 6b43cde65d 223/472: Add big pill game object (#81),
ELPA Syncer <=
- [nongnu] elpa/pacmacs 0546e964b1 222/472: Connected walls proof of concept for #131, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 19ffa64f7e 230/472: Merge branch 'master' into connecte-walls, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e0856fc881 244/472: Refactor wall tiles functions (#131):, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 79aa80e1d2 245/472: Merge branch 'connecte-walls'. Close #131, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2b9811e71b 246/472: Add README for tools, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 8e00815b4f 253/472: Disable undo for Pacmacs buffer. Close #143, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 8a79a510ea 257/472: Blinking big pill (#81), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 93d8b91792 266/472: Merge branch 'automate-sprite-generting-26'., ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e618da968d 279/472: Add UT for pacmacs--sort-score-table, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9ec0ff9f4d 280/472: Add UT for pacmacs--render-score-table, ELPA Syncer, 2022/01/06