Pacman for Emacs
Emacs Lisp Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
it-cases Add another it case (#122) Oct 23, 2015
maps
signs Implement pacmacs-score-awesome (#203) Jan 16, 2016
sprites Fix README for sprites folder Jan 7, 2016
test-data UT for pacmacs--file-content-test Oct 14, 2015
test Rename image module to walls module Jan 30, 2016
tools Bump the copyright year for all the files Jan 31, 2016
.gitignore Add att.txt to gitignore Dec 6, 2015
.travis.yml Disable Emacs 24.3 in the Travis build (#165) Nov 22, 2015
Cask Load game-over sign from signs folder (#191) Jan 10, 2016
LICENSE.md Bump the copyright year for all the files Jan 31, 2016
README.md Update the screenshots Dec 13, 2015
pacmacs-anim.el Bump the copyright year for all the files Jan 31, 2016
pacmacs-board.el Bump the copyright year for all the files Jan 31, 2016
pacmacs-render.el Bump the copyright year for all the files Jan 31, 2016
pacmacs-score.el Bump the copyright year for all the files Jan 31, 2016
pacmacs-utils.el Bump the copyright year for all the files Jan 31, 2016
pacmacs-vector.el Bump the copyright year for all the files Jan 31, 2016
pacmacs-walls.el Bump the copyright year for all the files Jan 31, 2016
pacmacs.el Bump the copyright year for all the files Jan 31, 2016

README.md

Build Status Coverage Status MELPA

Pacmacs

Pacman for Emacs

Requirements

  • Emacs 24.4+
  • Emacs should have displaying images support
  • Emacs should have the XPM image format support

Installation

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.

Usage

Functions

  1. M-x pacmacs-start RET — start the game;
  2. M-x pacmacs-score RET — show the 10 best scores.

Controls

Only available in the *Pacman* buffer.

  1. <up> — move Pacman up;
  2. <down> — move Pacman down;
  3. <left> — move Pacman left;
  4. <right> — move Pacman right;
  5. q — quit the game;
  6. SPC — pause the game.

Development

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:

  1. $ git clone git://github.com/codingteam/pacmacs.el.git && cd pacmacs.el;
  2. $ cask install;
  3. $ cask exec emacs;
  4. M-x find-file RET /path/to/pacmacs.el/pacmacs.el RET;
  5. M-x eval-expression RET (add-to-list 'load-path default-directory) RET;
  6. M-x eval-buffer RET;
  7. M-x pacmacs-start RET;
  8. M-x pacmacs-quit RET;
  9. Change something in the source code;
  10. Go to the step 6.

Unit Tests

For Unit Tests you need to install Cask first. To run unit tests:

$ cask # only once to download development dependencies
$ cask exec ert-runner

Licensing

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.