This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+fun/games/README.org
Eivind Fonn c3866382b2 Documentation update
- Add #+HTML_HEAD_EXTRA options to all org files
- HTMLize published documentation via CSS
2015-11-13 14:23:13 +01:00

70 lines
1.9 KiB
Org Mode

#+TITLE: Games contribution layer for Spacemacs
#+HTML_HEAD_EXTRA: <link rel="stylesheet" type="text/css" href="../../../css/readtheorg.css" />
[[file:img/games.png]]
* Table of Contents :TOC_4_org:noexport:
- [[Description][Description]]
- [[Install][Install]]
- [[Key bindings][Key bindings]]
- [[2048][2048]]
- [[Pacmacs][Pacmacs]]
- [[Tetris][Tetris]]
* Description
This layer allows you to play evilified games in spacemacs.
The games available now are:
- 2048-game
- Pacmacs (Pacman for Emacs)
- Tetris
* Install
To use this contribution add it to your =~/.spacemacs=
#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers '(games))
#+END_SRC
* Key bindings
To run a game:
| Key Binding | Description |
|-------------+----------------------------------------|
| ~SPC a G~ | Open an =helm= buffer to select a game |
Possible helm actions:
- run (default)
- quit
- reset
** 2048
| Key Binding | Description |
|-------------+----------------------|
| ~h~ | Move the tiles left |
| ~j~ | Move the tiles down |
| ~k~ | Move the tiles up |
| ~l~ | Move the tiles right |
** Pacmacs
| Key Binding | Description |
|-------------+-------------|
| ~h~ | Move left |
| ~j~ | Move down |
| ~k~ | Move up |
| ~l~ | Move right |
| | |
** Tetris
| Key Binding | Description |
|-------------+--------------------------------|
| ~h~ | Move block to the left |
| ~i~ | Rotate block counter-clockwise |
| ~j~ | Move block to the bottom |
| ~k~ | Rotate block clockwise |
| ~l~ | Move block to the right |
| ~n~ | Start a new game |
| ~p~ | Pause the game |
| ~q~ | Quit the game |