[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 8eddfbd0df 005/472: Implement resource application
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 8eddfbd0df 005/472: Implement resource application layer. Close #3 |
Date: |
Thu, 6 Jan 2022 21:59:00 -0500 (EST) |
branch: elpa/pacmacs
commit 8eddfbd0dfed1e343627363fd172eda889ac0147
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Implement resource application layer. Close #3
---
pacman-resources.el | 9 +++++++++
pacman.el | 6 +++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/pacman-resources.el b/pacman-resources.el
new file mode 100644
index 0000000000..fa8ab4e0f1
--- /dev/null
+++ b/pacman-resources.el
@@ -0,0 +1,9 @@
+
+(defun pacman-load-resource (filename)
+ (create-image (concat default-directory filename)
+ 'png nil :heuristic-mask t))
+
+(defun pacman-insert-image (resource resource-vector)
+ (insert-image resource " " nil resource-vector))
+
+(provide 'pacman-resources)
diff --git a/pacman.el b/pacman.el
index e3ed9e9fd8..3e9d43bd68 100644
--- a/pacman.el
+++ b/pacman.el
@@ -1,3 +1,5 @@
+(require 'pacman-resources)
+
(defconst pacman-buffer-name "*Pacman*")
(defvar pacman-timer nil)
@@ -9,7 +11,7 @@
(define-key pacman-mode-map (kbd "<left>") 'pacman-left)
(define-key pacman-mode-map (kbd "<right>") 'pacman-right)
(define-key pacman-mode-map (kbd "q") 'pacman-quit)
- (add-hook 'kill-buffer-hook 'pacman-destroy :local t))
+ (add-hook 'kill-buffer-hook 'pacman-destroy nil t))
(defun pacman-start ()
(interactive)
@@ -51,3 +53,5 @@
(defun pacman-right ()
(interactive)
)
+
+(provide 'pacman)
- [nongnu] elpa/pacmacs 6124aa2061 009/472: Fix Copyright year, (continued)
- [nongnu] elpa/pacmacs 6124aa2061 009/472: Fix Copyright year, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2d818f9a49 006/472: Implement rendering of game state. Close #8, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3ff080432f 015/472: Extract pacman-resources module (#19), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs b8fce3e847 028/472: Add UT for pacman-convert-aseprite-frame function (#22), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 179ea99635 021/472: Add our own sprites. Close #13, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs d0dc2eff12 027/472: Ad UT for pacman-anim-object-next-frame function (#22), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs abb1f366fb 031/472: Merge branch 'uts-for-aseprite-animation-support-22'. Close #22, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs fe05829cd3 004/472: Fix kill buffer problem. Close #7, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0a532ddc58 011/472: Add gitignore, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 96ad2016a1 001/472: Add initial code for pacman game, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 8eddfbd0df 005/472: Implement resource application layer. Close #3,
ELPA Syncer <=
- [nongnu] elpa/pacmacs e75db415af 013/472: Enable travis. Close #14, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 646db1b62a 022/472: Kill game window on quit. Close #17, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs b8d1136c3a 014/472: Extract pacman-anim module (#19), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 929fda2cb4 016/472: Define package in Cask file directly (#19), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 043c660152 038/472: Clean up usage instructions in README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 58cf91b060 032/472: Enable undercover (#27), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 30b5c43879 040/472: License header (#28):, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 59b5b95c2d 039/472: Share the sprites source files. Close #25, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 5780c37396 044/472: Add UT for pacman-make-anim function, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1f32ee2489 048/472: Implement board state (#5), ELPA Syncer, 2022/01/06