Pacman for Emacs
- Emacs 24.4+
- Emacs should have displaying images support
- Emacs should have the XPM image format support
Pacmacs available on MELPA. Add the following to your emacs config file somewhere (.emacs, init.el, whatever):
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
Then use M-x package-install RET pacmacs RET
to install the game.
M-x pacmacs-start RET
— start the game;M-x pacmacs-score RET
— show the 10 best scores.
Only available in the *Pacman*
buffer.
<up>
— move Pacman up;<down>
— move Pacman down;<left>
— move Pacman left;<right>
— move Pacman right;q
— quit the game;SPC
— pause the game.
Before developing the game please remove it from Emacs if it was installed before. You'll need Cask to install the dependencies.
I usually use the following workflow when I develop this game:
$ git clone git://github.com/codingteam/pacmacs.el.git && cd pacmacs.el
;$ cask install
;$ cask exec emacs
;M-x find-file RET /path/to/pacmacs.el/pacmacs.el RET
;M-x eval-expression RET (add-to-list 'load-path default-directory) RET
;M-x eval-buffer RET
;M-x pacmacs-start RET
;M-x pacmacs-quit RET
;- Change something in the source code;
- Go to the step
6
.
For Unit Tests you need to install Cask first. To run unit tests:
$ cask # only once to download development dependencies
$ cask exec ert-runner
All the source code of this game is distributed under the MIT
license. All the work in the sprites/
directory is distributed under
CC-BY.
Check LICENSE.md
and sprites/LICENSE.md
files for more
information.